Call Command
Obsolete
This command is replaced by the Send command.
Purpose
To execute a global procedure.
Syntax
call procedure
[value ... value]
The procedure must be previously defined in the program by the procedure command.
The number of values must match the number of arguments declared for procedure, and the type of each must match that of its respective argument.
What It Does
The call command executes the user-defined procedure named procedure. Values are passed to the arguments peculiar to whatever procedure is called. The number and type(s) of the value(s) depend on those declared for the procedure being called.
call underwrite "male" 12/12/44 "nonsmoker"
In this example, the procedure underwrite is executed with three arguments (male, 12/12/44, and nonsmoker) passed to it.
After execution of the procedure, execution returns to the first line after the call command. Call is for use outside the UIMS (without the use of the ui command) in procedural (non-object-oriented) DataFlex programs.
Notes
Callfunctions similarly to thegosubcommand, except that it can pass arguments to the procedure to be executed.Calluses a procedure defined in aprocedure ... end_procedureblock, whilegosubuses a label followed by areturncommand.