Skip to Content
Visual Basic® Style Guide, The
book

Visual Basic® Style Guide, The

by Tim Patrick
May 2000
Intermediate to advanced
365 pages
9h 48m
English
Pearson
Content preview from Visual Basic® Style Guide, The

On...GoSub Statement

CategoryFlow Control Features
AvailabilityVB:Yes, VBA:Yes, VBScript:No
PurposeBranches to one or more code sections based on an expression.
Typical SyntaxOn expression GoSub destinationlist
See AlsoChoose 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.

On...GoTo Statement

CategoryFlow Control Features
AvailabilityVB:Yes, VBA:Yes, VBScript:No
PurposeBranches to one or more code sections based ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Visual Basic® 2012 Unleashed, Second Edition

Visual Basic® 2012 Unleashed, Second Edition

Alessandro Del Sole
Microsoft® Visual Basic® 2010 Developer’s Handbook

Microsoft® Visual Basic® 2010 Developer’s Handbook

Klaus Löffelmann and Sarika Calla Purohit
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 0130883611Purchase book