Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

DspFileGetInfo

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the attributes of a file-to-screen display (used for displaying text files).

Syntax

DspFileGetInfo(nAN, Type)

nAN:

The AN where the file display window will be located. This AN needs to be the same as the AN specified with the DspFile() function.

nType:

The type of data required:

0 - The width of the file display window, in characters.

1 - The maximum number of lines that can display in one page of the file display window.

2 - The file-to-screen row offset number.

3 - The file-to-screen column offset number.

4 - The number of lines in the displayed file.

Return Value

The attributes of the "window" as an integer. If an incorrect AN is specified, an error is returned.

DspFile, DspFileGetName, DspFileScroll, DspFileSetName

Example

! Display the page number of the file display.
PageNumber=IntToStr(DspFileGetInfo(20,2)/DspFileGetInfo(20,1)+1);
DspText(12,0,"Page No "+PageNumber);

See Also

Display Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in