BEGINFUNCTIONS Begin function declaration section |
Top Previous Next |
This script directive is used to mark the beginning of a function declaration section in a script file. Functions must be declared before they can be called.
Consider the following example:
BEGINFUNCTIONS FUNCTION MyFunction1 ;; body of MyFunction1 FUNCTION MyFunction2 ;; body of MyFunction2 ENDFUNCTION
IMPORTANT It is only possible to call functions declared in the most recently processed function declaration section so, to avoid confusion, it is probably best to declare all of your functions in a single section at the beginning of your script file.
Related Command(s): ENDFUNCTIONS, FUNCTION, ENDFUNCTION, RETURN
|