Writing to a File within Navision

kaybeekaybee Member Posts: 49
Hi, is it possible to code something in Navision which writes to and reads from an external file?

Comments

  • Yaroslav_GaponovYaroslav_Gaponov Member Posts: 158
    Hi

    Use a variable type FILE
  • kaybeekaybee Member Posts: 49
    Not sure if I am looking in depth enough, but the functions I see available to me are:

    ERASE, RENAME, COPY, GETSTAMP, SETSTAMP and EXISTS.

    Would this give me the capability to actually write to a designated file like "test.txt" ?
  • krikikriki Member, Moderator Posts: 9,110
    You need to define a variable as type "File" and use that to read/write.
    Search also the forum. There are a lot of examples to be found.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • SavatageSavatage Member Posts: 7,142
    look in c/side guide for instream & outstream too.

    The InStream (input stream) and OutStream (output stream) data types are generic stream objects that you can use to read from or write to files and BLOBs.
  • BeckaBecka Member Posts: 178
    Sure..
    Just take a look ove Dataport, Codeunit(you can export/import information in/out of Navision).. and you can communicate with other applications dealing with The Navision Communication Component
    Good Luck :mrgreen:
    MCSD
    Attain Navision
Sign In or Register to comment.