Purpose
Declares the name and arguments for a subprocedure.
Syntax
Sub Name
Sub Name ([ByRef | ByVal] Arg)
Sub Name ([ByRef | ByVal] Arg1, [ByRef | ByVal] Arg2)
Name |
Any string that is a valid BASIC identifier. It can't begin with underscore characters or decimal digits (0-9). |
ByRef |
The argument is passed by reference. |
ByVal |
The argument is passed by value. This is the default if you don't specify either ByRef or ByVal. |
Arg |
Any valid BASIC identifier of any type. A Sub can receive any number of arguments. |
Example
Sub DisplayMyUserInfo()
Print "My UserID is "; FCUserID
End sub
|