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