User Tools

Site Tools


next_find_next_line_containing_search_text_.htm
Navigation:  ABC Library Reference > ASCIISearchClass > AsciiSearchClass Methods >====== Next (find next line containing search text) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

Next, VIRTUAL

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, Setup

next_find_next_line_containing_search_text_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)