Next (find next line containing search text)

Top  Previous  Next

 

Next, VIRTUAL

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