| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ASCIIFileClass > AsciiFileClass Methods >====== SetLine (a virtual to position the file) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[reset reset the asciifileclass object .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[setpercentile set file to relative position .htm|{{btn_next_n.gif|Next page}}]] | | || **SetLine( **//line number //**), PROTECTED, VIRTUAL** {{blk2blue.jpg|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 set file to relative position .htm|SetPercentile]], [[askgotoline go to user specified line .htm|ASCIIViewerClass.AskGoToLine]], [[ask solicit search specifications .htm|ASCIISearchClass.Ask]]