English
Language : 

NSB8 Datasheet, PDF (67/158 Pages) List of Unclassifed Manufacturers – BASIC interpreter for Z80 family
ITALIAN TECHNOLOGY
grifo®
RETURN
STATEMENT:
RETURN <string or numeric expression>
ACTION:
The evaluation of the multiple line user function currently in progress terminates. The function value
becomes the value of the expression in the RETURN statement.
EXAMPLE:
10 RETURN F$+",2"
20 RETURN A
65 RETURN X+3
99 RETURN "CONSTANT"
REMARKS:
Do not confuse this form of the RETURN statement with that which is used for subroutines. Improper
utilization of this form to conclude a subroutine, or of the subroutine form to terminate a multi line
user function will result in a SYNTAX ERROR.
The value returned by a multi line function must be of the same type as the function name. String
functions may not return numeric values, and numeric functions may not return string values
There are two versions of the RETURN statement in NSB8. This version is for use with subroutine
only. Another is used wit user funtions. See section USER FUNCTIONS, for details on that version
of RETURN.
ERROR MESSAGES:
SYNTAX ERROR
The return expression doesn't match the function type.
SEE ALSO:
Statement FNEND
Statement DEF
Statement RETURN
Section USER FUNCTION
NSB8
Rel. 5.10
Page 55