proceduresearch
proceduresearch
TEXT

The proceduresearch statement searches for text in a procedure.

Parameters

This statement has one parameter:

text – word or phrase to search for.

Description

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

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

    proceduresearch "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 proceduresearchexact 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.
- proceduresearchexact -- searches for text in a procedure.
- proceduresearchnext -- searches for text in a procedure, starting from the current location.
- proceduresearchnextexact -- searches for text in a procedure, starting from the current location.
- proceduresetselection -- changes the text selection in the current procedure editor window.

History

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