RETURN Procedure
Returns control to the caller of a user-written procedure or function.
Usage
RETURN[, expr]
Input Parameters
expr—(optional) Returns the result of the function to the caller. This parameter can only be used when RETURN is called inside a function; it cannot be used in a procedure.
Keywords
None.
Example
FUNCTION SQUARE_IT, val
x = val * val
; Return the value of x to the calling program.
RETURN, x
END
See Also
For more information about the role of the RETURN procedure, see the PV‑WAVE Programmer’s Guide.
Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.