Explanation
DECLARE Statement
Declares a FUNCTION or SUB procedure and invokes argument data type checking.Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
DECLARE {FUNCTION | SUB} name [([parameterlist])] |
name | The name of the procedure. | ||||||
parameterlist | One or more variables that specify parameters to be passed to the procedure when it is called: | ||||||
| |||||||
DECLARE is required if you call SUB procedures without CALL. QBasic automatically generates DECLARE statements when you save your program. |
' 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.