FUNCTION
FUNCTION name[([BYVAL] arg AS type [,...])] AS type
Instructions
END FUNCTION
Declaration of the function name.
The function returns the value name and can require the arguments arg in input.
BYVAL specifies an argument passed by value.
The arguments and the returned value are declared with the type: STRING, INTEGER, BOOLEAN, DOUBLE or TIME.