A procedure, a function, a class method, or a window can return several values.

The following syntax must be used:

RESULT [<Value 1>, <Value 2>, ... <Value N>]

or

RETURN = [<Value 1>, <Value 2>, ... <Value N>]

 

Example:

// Code of the procedure

PROCEDURE MyProc()

 

// Process

RESULT(1, 2, 3)

 

 

// Code for calling the procedure

( x, y, z ) = MyProc()

// x is set to 1, y to 2 and z to 3