Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
FUNCTION...END FUNCTION Statement QuickSCREEN
◄QuickSCREEN► ◄Details► ◄Example► ◄Contents► ◄Index►
──────────────────────────────────────────────────────────────────────────────
FUNCTION...END FUNCTION - a non-executable statement that declares the
name, the parameters, and the code that form
the body of a FUNCTION procedure
Syntax
FUNCTION name [(parameterlist)][STATIC]
[statements]
name = expression
[statements]
END FUNCTION
■ name, which follows the same rules as are used for naming BASIC
variables, determines the data type the function returns
■ (parameterlist) is one or more variables, separated by commas,
that will be passed to the function when it is called
■ expression is the return value of the function
■ Use of the keyword STATIC is a ◄Detail►
See Also ◄DECLARE► ◄STATIC statement► ◄DEF FN► ◄SUB►