| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ASCIIViewerClass > AsciiViewerClass Methods >====== AskGotoLine (go to user specified line) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[additem program the asciiviewer object .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[displaypage display new page .htm|{{btn_next_n.gif|Next page}}]] | | || **AskGotoLine( )** {{blk2blue.jpg|blk2blue.jpg}} 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 position to specific line .htm|SetLine]]