qck.hlp (Table of Contents; Topic list)
DECLARE Statement (Basic Procedures)
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Declares a FUNCTION or SUB procedure and invokes argument data type
 checking.
 
    DECLARE {FUNCTION | SUB} name [([parameterlist])]
 
    ■ name           Name of the procedure
 
    ■ parameterlist  One or more variables that specify parameters passed
                     to the procedure when it is called:
 
      [BYVAL] variable[( )] [AS type] [, [BYVAL] variable[( )] [AS type]]...
 
                     • BYVAL     Indicates the parameter is passed by value
                                 rather than by reference; cannot be used
                                 with a variable of a user-defined type
 
                     • variable  Visual Basic variable name; for array
                                 variables, empty parentheses are required
 
                     • AS type   Data type of the variable: INTEGER, LONG,
                                 SINGLE, DOUBLE, STRING, user-defined type,
                                 or two additional types, FORM and CONTROL
 
 See Also
    CALL Statement (Basic Procedures)
    DECLARE Statement (Non-Basic Procedures)
    FUNCTION Statement
    SUB Statement