qb45qck.hlp (Table of Contents; Topic list)
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