Explanation
CALL Statement
Transfers control to a SUB procedure.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.
[CALL] name [([argumentlist])] |
name | The name of the SUB procedure to call. |
argumentlist | The variables or constants to pass to the SUB procedure. Separate multiple arguments with commas. Specify array arguments with the array name followed by empty parentheses. |
If you omit the CALL keyword, also omit the parentheses around argumentlist. Either declare the procedure in a DECLARE statement before calling it, or save the program and QBasic automatically generates a DECLARE statement. | |
To specify an argument whose value will not be changed by the procedure, enclose the argument in parentheses. |
' 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 ABSOLUTE | DECLARE | SUB |