Skip to content

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

  • Call functions similarly to the gosub command, except that it can pass arguments to the procedure to be executed. Call uses a procedure defined in a procedure ... end_procedure block, while gosub uses a label followed by a return command.