procedureinserttext
procedureinserttext
TEXT

The procedureinserttext statement inserts text into the current procedure.

Parameters

This statement has one parameter:

text – the text to be inserted.

Description

This statement inserts text into the current procedure (a procedure editing window must be active). The text will replace whatever text is currently selected (if necessary, you can use the proceduresetselection statement to change the selection before you insert).

    procedureinserttext "Hello World!"

You can delete the currently selected text by inserting nothing.

    procedureinserttext ""

Note: When you use the procedureinserttext statement, it is automatically “undo-able”. It will appear in the Undo menu as Undo Typing. If you use multiple procedureinserttext statements in your program, each one will be separately undoable, there is no way to combine several procedureinserttext statements into a single Undo event.

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.
- proceduresearch -- searches for text in a 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.