AskGotoLine (go to user specified line)

Top  Previous  Next


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.


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.


MyViewerClass.TakeEvent PROCEDURE(UNSIGNED EventNo)


 CASE EventNo

 OF EVENT:AlertKey

   IF KEYCODE()=MouseRight

     CASE SELF.Popup.Ask()

     OF 'Print'


     OF 'Goto'





See Also:     SetLine