CALL
FUNCTION
This command executes the specified 3GL public program. It can be used to send values to and receive new values from the program.
SYNTAX
CALL "program-name" [, value [, value] ...] [ERROR PROCESS IS procedure]- program name
- the name of a 3GL program.
- value
- a data name, variable, constant, or expression.
- procedure
- the name of a procedure to perform.
NOTES
- This command provides an interface to 3GL programs written in Thoroughbred Basic. The CALL command executes a 3GL public program written in Thoroughbred Basic and enables specified values to be transferred between the 3GL program and the script.
- CALL executes the 3GL program as a public program. It can pass and receive values.
- If a value is specified, the CALL command must have a corresponding ENTER command in the 3GL program, and the value or name list in the script and program must agree in type.
- When the 3GL program is terminated, execution returns to the script at the statement following the CALL.
EXAMPLES
CALL "4SPINIT", "4SAPTEMP", CODE$, COSTSEE ALSO
The section on Different Types of Scripts in Script-IV Developer Guide. For information on public programs, refer to the Thoroughbred Basic Developer Guide.
From the Script-IV Language Reference, version 8.9.1. Open this page in the PDF