May 2000
Intermediate to advanced
365 pages
9h 48m
English
| Category | Flow Control Features |
| Availability | VB:Yes, VBA:Yes, VBScript:No |
| Purpose | Branches to one or more code sections based on an expression. |
| Typical Syntax | On expression GoSub destinationlist |
| See Also | Choose Function, GoSub Statement, GoTo Statement, IIf Function, On...GoTo Statement, Resume Statement, Select Case Statement |
Do not use the On...GoSub statement within your Visual Basic source code. Usage of this statement can result in subtle errors, maintenance difficulties, and debugging nightmares. Use a Select Case statement instead to redirect your procedure based on an expression value.
| Category | Flow Control Features |
| Availability | VB:Yes, VBA:Yes, VBScript:No |
| Purpose | Branches to one or more code sections based ... |