proceduresearchnext
proceduresearchnext
TEXT

The proceduresearchnext statement searches for text in a procedure, starting from the current location.

Parameters

This statement has one parameter:

text – word or phrase to search for.

Description

This statement searches for text in a procedure window, starting from the current location. If the search fails to match, it returns an error.

This example searches for the word magic, starting from the current location. If the search fails, the program beeps and stops.

    proceduresearchnext "magic"
    if error
        beep
        stop
    endif

This statement searches for a case insensitive match. In the example above, the word magic will match, and so will Magic or MAGIC. If you want a case sensitive search, use the proceduresearchnextexact statement.

See Also

- info("procedureselectedtext") -- returns the selected source code in the current procedure window.
- info("procedureselectionend") -- returns the ending position of the selected source code in the current procedure window.
- info("procedureselectionlength") -- returns the length of the selected source code in the current procedure window.
- info("procedureselectionstart") -- returns the starting position of the selected source code in the current procedure window.
- info("proceduretext") -- returns the source code in the current procedure window.
- procedureinsertfieldname -- inserts a field name into a procedure, adding chevrons if necessary.
- procedureinsertformname -- inserts a form name into a procedure, adding quotes.
- procedureinsertprocedurename -- inserts a procedure name into a procedure, adding quotes if necessary.
- procedureinserttext -- inserts text into the current procedure.
- proceduresearch -- searches for text in a procedure.
- proceduresearchexact -- searches for text in a procedure.
- proceduresearchnextexact -- searches for text in a procedure, starting from the current location.
- proceduresetselection -- changes the text selection in the current procedure editor window.
- startstoprecorder -- starts or stops recording into the current procedure.

History

Version | Status | Notes
10.0 | New | New in this version.