NAME
DECLARE Statement
SYNOPSIS
DECLARE {FUNCTION | SUB} name [([parameterlist])]
o name The name of the procedure.
o parameterlist One or more variables that specify parameters to be
passed to the procedure when it is called:
variable[( )] [AS type] [, variable[( )] [AS type]]...
variable A Basic variable name.
type The data type of the variable (INTEGER,
LONG, SINGLE, DOUBLE, STRING, or a
user-defined data type). ANY allows any
data type.
o DECLARE is required if you call SUB procedures without CALL. QBasic
automatically generates DECLARE statements when you save your program.
DESCRIPTION
Declares a FUNCTION or SUB procedure and invokes argument data type checking.
Example:
The program REMLINE.BAS illustrates declaring FUNCTION and SUB
procedures. To view or run this program, load REMLINE.BAS using the Open
command from the File menu.
SEE ALSO
CALL FUNCTION SUB