| it | Index Level | logon PROCs and Macros |
| Syntax |
({dict} filename {item-id})
({dict} filename {item-id}) {label} [{dict} {filename} {item-id}] [{dict} filename {item-id}] {label} |
| Category | PROC |
| Type | Definition |
| Description |
the means by which PROCs either pass control one-way to another PROC, or call another PROC as an external subroutine.
The type of "linkage" is determined by the character used in the syntax. "( )" (parentheses) Transfers control to the PROC in the designated filename as a "one-way" transfer (like the "chain" statement in FlashBASIC, meaning that it does not return control upon completion). If no item-id is specified, the default item-id is the value in the current position of the input buffer. Control is not returned to the calling PROC. The optional "label" parameter indicates the statement label number where execution should begin. "[ ]" (brackets) Transfers control to the PROC in the designated filename as a "two-way" transfer (like the "call" statement in FlashBASIC, meaning that it will eventually return). Control returns to the next executable statement in the calling PROC upon completion. If no item-id is specified, the item-id defaults to the value in the current position of the input buffer. The "[ ]" form may be used as an "internal" subroutine call, when both the filename and item-id are omitted, and a statement label is included. The "internal" subroutine "returns" to the next line after the "call" when it encounters an "x" command. |
| Options | |
| See Also | x u91bc PROC u91a2 |
| Example |
[procs example1]
Transfers control to 'example1' in the 'procs' file. Control returns to the next line in the current PROC upon completion. [procs example2] 25 Transfers control to 'example2' in the 'procs' file, and begins execution at statement label 25. Control returns to the next line in the current PROC upon completion. [] 150 Local subroutine call. Transfers control to statement label 150 in the current PROC and begins execution. (procs) Transfers control to the 'procs' file, using the item-id indicated in the input buffer. |
| Warnings | |
| Compatibility | D3 7.0 AP R83 |
| it | Index Level | logon PROCs and Macros |