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.
Subs, Functions, and Procedures
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Subs, Functions, and Procedures
■ The following keywords are used in Visual Basic to declare SUB and
FUNCTION statements, pass parameters, and transfer control to programs:
◄ANY► Disables type checking in AS clause of DECLARE statement
◄BYVAL► Passes variable by value rather than by reference
◄CALL► Transfers control to Visual Basic SUB procedure
◄CHAIN► Transfers control another program
◄DECLARE► Declares Visual Basic SUB or FUNCTION procedure
◄EXIT► Immediately exits SUB, FUNCTION, DO, FOR, or DEF FN
◄FUNCTION► Declares name, parameters, and return type of FUNCTION
◄RUN► Restarts program in memory or executes another
◄SUB► Declares the name and the parameters of SUB
◄STATIC► Makes variable local and preserves its value
See: ◄Creating an Event Procedure►
◄Creating a General Procedure►
◄Keywords by Task►