| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ASCIIFileClass > AsciiFileClass Methods >====== GetLastLineNo (return last line number) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[getfilename return the filename .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[getline return line of text .htm|{{btn_next_n.gif|Next page}}]] | | || **GetLastLineNo, PROC** {{blk2blue.jpg|blk2blue.jpg}} The **GetLastLineNo **method returns the number of the last line in the file, and indexes the entire file. **Return Data Type:     **LONG **Example:** **MyViewer.TakeScroll PROCEDURE(UNSIGNED EventNo)** **LineNo LONG** ** CODE** ** IF FIELD()=SELF.ListBox** **  IF EVENT() = EVENT:ScrollBottom               !on scroll bottom** **   LineNo = SELF.GetLastLineNo()                !index to end of file** **   SELF.DisplayPage(LineNo-SELF.ListBoxItems+1) !display last page** **   SELECT(SELF.ListBox,SELF.ListBoxItems)       !highlight last row** **  END** ** END**