FileOpen function, Citect Scada 2018

We have a problem with the FileOpen function. Button with FileOpen("c: \ notes \ note1.txt", "r") command does not open a txt file on the client's graphics page. We are running Citect Scada 2018 Update 18. Operating System Windows 10 (1909). Is something missing from the function or has the structure of the function changed?

Parents
  • Hello Timo, the FileOpen function is just "opening" a file for modifications, returning a handle: https://gcsresource.aveva.com/Citect/WebHelp/citect2018R2/Content/Cicode%20Reference/Content/FileOpen.html

    If you want to display a file on a page you will need to check other functions like PageFile or DspFile:
    https://gcsresource.aveva.com/Citect/WebHelp/citect2018R2/Content/Cicode%20Reference/Content/PageFile.html
    https://gcsresource.aveva.com/Citect/WebHelp/citect2018R2/Content/Cicode%20Reference/Content/DspFile.html

    In the example project, there is a page called "File" as well as the sxw template "File" where you can get more info.
Reply
  • Hello Timo, the FileOpen function is just "opening" a file for modifications, returning a handle: https://gcsresource.aveva.com/Citect/WebHelp/citect2018R2/Content/Cicode%20Reference/Content/FileOpen.html

    If you want to display a file on a page you will need to check other functions like PageFile or DspFile:
    https://gcsresource.aveva.com/Citect/WebHelp/citect2018R2/Content/Cicode%20Reference/Content/PageFile.html
    https://gcsresource.aveva.com/Citect/WebHelp/citect2018R2/Content/Cicode%20Reference/Content/DspFile.html

    In the example project, there is a page called "File" as well as the sxw template "File" where you can get more info.
Children
No Data