Fnend: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Syntax) |
||
Line 5: | Line 5: | ||
===Syntax=== | ===Syntax=== | ||
FNEND | |||
[[file:Fnend.png]] | [[file:Fnend.png]] | ||
Latest revision as of 16:17, 24 April 2014
The FnEnd (FN) and End Def statements indicates the end of a definition of a multi-lined User Defined Functions.
Comments and Examples
If a user-defined function uses more than one statement, it must be terminated by an FnEnd statement.
Syntax
FNEND
Technical Considerations
- 1.) A user-defined function definition may appear anywhere in the program, either before or after the function is invoked. Unlike subroutines, functions are bypassed when encountered in normal program flow.
- 2.) The FnEnd statement is considered descriptive and does not affect the value of the function.
- 3.) If a function should return a value, it must be assigned using a LET statement before FnEnd is encountered. The LET must appear in the following format:LET FNname=expression
- 4.) FnEnd must be the last statement on a line.
See also: Def