<<

Contents

Search

>>

 

RETURN

 

 

Instruction

 

 

Syntax:

RETURN <Result>

 

<Result> = <Expression>

 

Meaning:

Returns from a function.

 

RETURN may only be applied within functions.

 

RETURN must be the last instruction of a function.

 

Parameter:

Result

Returns the result of the function. <Result> must correspond to the type of the function (numeric / alphanumeric).

 

Sample:

FUNCTION FN_SUM(A,B)

   RETURN A+B

ENDFUNC

 

See also:

FUNCTION