Changes

Jump to: navigation, search

Visual Basic Modules and Procedures

59 bytes added, 20:33, 31 July 2007
Defining Visual Basic Subroutines
End Sub
The ''scope'' value is either ''Private'' or ''Public'' depending on whether the Subroutine is to be accessible from Visual Basic code outside of the current module. ''Sub'' is the Visual Basic keyword which indicates this is a Subroutine rather than a Function. ''subroutineName'' is the name of the functionSubroutine and is used when this specific procedure is to be called. The ''parameters'' value allows the parameters accepted by this Subroutine to be declared (see below).
The ''Public'' keyword indicates the ''scope''. This defines whether this subroutine is accessible from Visual Basic code residing in other modules. Setting the ''scope'' to ''Private'' would make the Subroutine inaccessible to Visual Basic code outside the current module.

Navigation menu