| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ASCIISearchClass > AsciiSearchClass Methods >====== Next (find next line containing search text) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[init initialize the asciisearchclass object .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[setup set search constraints .htm|{{btn_next_n.gif|Next page}}]] | | || **Next, VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} The **Next **method returns the line number of the next line containing the search value specified by the Ask method. **Implementation:** The Ask method calls the Next method. The Next method searches for the search value and in the direction set by the Ask method. Alternatively, you can use the Setup method to set the search constraints. **Return Data Type:     **LONG **Example:** **MyAsciiSearchClass.Ask PROCEDURE** ** CODE** ** !procedure code** ** CASE EVENT()** ** OF EVENT:Accepted** **  CASE FIELD()** **  OF ?NextButton** **   SELF.LineCounter=SELF.Next()** **   IF SELF.LineCounter** **    SELF.FileMgr.SetLine(SELF.LineCounter)** **   END** ** !procedure code** **See Also:     **[[ask solicit search specifications .htm|Ask]], [[setup set search constraints .htm|Setup]]