Monarch 9460 Printer User Manual


 
5-20 Command Reference
CALL
Purpose Calls a section of code as a subroutine.
Syntax CALL
function-name
[ (
param1, param2, …,paramX
) ]
Process The CALL command executes an out-of-line function. After execution, control
returns to the command following the CALL command. The CALL function allows
parameters to passed to the called function. The called function
function-name
must have a DEFINE LOCAL for local storage for each parameter that is passed to
it. The parameters will be placed from left to right with the leftmost parameter
placed in the first DEFINE LOCAL variable.
Rules: You may nest up to 25 CALL commands.
The
param
fields can be one of the following:
Param
Description
INPUT Input Buffer
Logical Field Name
(TEMP1)
Temporary Buffer
Field
Logical Field Name (LU1) Lookup Buffer Field
Logical Field Name (PR1) Printer Buffer Field
Logical Field Name
(Field1) [Index]
Array Buffer Field
String
Number
ASCII string delimited
by double quotes.
Number prefixed by a
number sign (#).
Scratch Scratch buffer
Example 1
This example calls the subroutine COMPUTE_TAX.
CALL COMPUTE_TAX