askgotoline_go_to_user_specified_line_.htm
Navigation: ABC Library Reference > ASCIIViewerClass > AsciiViewerClass Methods >====== AskGotoLine (go to user specified line) ====== | |
AskGotoLine( )
The AskGotoLine method prompts the end user for a specific line number to display, then positions the file to the line nearest the one specified.
Implementation:
The ASCIIViewerClass invokes the AskGotoLine method from a RIGHT-CLICK popup menu. The AskGotoLine method calls the SetLine method to position to the requested record.
Example:
MyViewerClass.TakeEvent PROCEDURE(UNSIGNED EventNo)
CODE
CASE EventNo
OF EVENT:AlertKey
IF KEYCODE()=MouseRight
CASE SELF.Popup.Ask()
OF 'Print'
SELF.Printer.Ask
OF 'Goto'
SELF.AskGotoLine
END
END
END
See Also: SetLine
askgotoline_go_to_user_specified_line_.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1