DspFileGetInfo
Gets the attributes of a file-to-screen display (used for displaying text files).
Syntax
DspFileGetInfo(AN, Type)
AN:
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.
Type:
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.
Related Functions
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