macros

macros


logon Index Level master dictionary
Syntax
Category Definitions
Type Definition
Description executes one or more TCL commands.

Macros are stored in the master dictionary with the name of the macro as the item-id.

When the macro name is entered at TCL, it may be followed with any number of parameters. These parameters are added to the end of the first TCL command in attribute 2 as additional language elements and then passed for processing.

The macro functionality is provided for a simple TCL procedure language. In general, a complex procedure should be written as a FlashBASIC program.

The first line of a macro must contain the character m (modify mode) or n (non-stop mode). Each subsequent line is considered a TCL command to be executed.

If the "m" code is used in the first attribute of the macro, the TCL command is displayed so that changes can be made to the TCL command. If "n" is used, the macro runs immediately.

Macro "comments" can be added preceded by a blank after the macro code on attribute 1.  Comments on following lines can be added by using the REM statement.

Additional values stored in an attribute are used as stacked input to the TCL command in the first value.

Macro's may be created by using the Update processor or the "create-macro" verb.  The "create-macro" verb takes the last statement entered at TCL and converts it to a macro.
Options
See Also line continuation character (R83) TCL options:   prompt ! (Unix) logon PROCs and Macros dm display list-abs account create-macro list-macros paragraph rem
Example
Warnings An "m"-type macro must be enclosed in quotes when being edited or accessed through UP.
Compatibility D3 7.0 AP
logon Index Level master dictionary