FUNCTIONEND


9.0C

 

The FUNCTIONEND instruction defines the ending point of a FUNCTION or LFUNCTION definition. The instruction uses the following format:

 

 

[label]

FUNCTIONEND

[USING {return}]

 

Where:

label

Optional. A Program Execution Label.

return

Optional. A DIM, FORM, INTEGER, CONST, Numeric Expression, or GUI Object data that is returned.

Flags Affected: NONE

Note the following:

  1. The FUNCTIONEND must be specified to terminate a LFUNCTION or FUNCTION instruction.

  2. The FUNCTIONEND instruction is not allowed without a preceeding LFUNCTION or FUNCTION instruction.

  3. The optional {return} value is placed in the CALL GIVING variable

  4. Only one {return} value is allowed in the FUNCTIONEND instruction.

 

 

See Also: FUNCTION, ENTRY, CALL, FUNCTIONs, Program Control Instructions

 



PL/B Language Reference FUNCTION GOTO