User Tools

Site Tools


setline_a_virtual_to_position_the_file_.htm
Navigation:  ABC Library Reference > ASCIIFileClass > AsciiFileClass Methods >====== SetLine (a virtual to position the file) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

SetLine( line number ), PROTECTED, VIRTUAL

blk2blue.jpg

SetLine A virtual placeholder method to position the file.
line number The offset or position of the line in the file.

The SetLine method is a virtual placeholder method to position the file.

Implementation:

The SetLine method is a placeholder for derived classes. The SetPercentile, the ASCIIViewerClass.AskGotoLine, and the ASCIISearchClass.Ask methods call the SetLine method.

Example:

MyViewerClass.SetLine PROCEDURE(LONG LineNo) !synchronize LIST with line number

CODE

SELF.DisplayPage(LineNo) !scroll list to LineNo

!highlight the LineNo line

SELECT(SELF.ListBox,CHOOSE(SELF.TopLine=LineNo,1,LineNo-SELF.TopLine+1))

See Also: SetPercentile, ASCIIViewerClass.AskGoToLine, ASCIISearchClass.Ask

setline_a_virtual_to_position_the_file_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1