Applies To:
  • CitectSCADA 3.00 3.10 3.21 4.00

Summary:
If you call the function PageFile() you get the error message "Cannot display page". You can force it to work by first calling PageGoto("File"); and the PageFile("...."); although is still give the error message. 

Solution:
CIT has confirmed this to be a problem in Citect for Windows versions 3.00 to 4.00. This problem has been fixed in version 4.10.

The PageFile() function is trying to display the version 1.x or 2.x page for the file to screen. This page was called "!FILE", while in later versions this page is now called "FILE". You can work around this problem my modifying the cicode function PageFile() in the cicode file CITECT.CI in the INCLUDE project as follows:

FUNCTION
PageFile(string sFile = "")
   IF PageDisplay("File") THEN
      PageDisplay("!File");
   END
   DspFile(21, DspFontHnd("TextFont"), 24, 95);
   DspFileSetName(21, sFile);
END

 

Keywords:
 

Attachments