Changes

Jump to: navigation, search

Visual Basic Modules and Procedures

189 bytes added, 15:19, 31 July 2007
Defining Visual Basic Subroutines
<tt>Public Sub DisplayResult()</tt><br>
<tt>End Sub</tt>
The ''Public'' keyword indicates that this subroutine is accessible from Visual Basic code residing in other modules. The ''Sub'' keyword indicates that this is a Subroutine (as opposed to a Function) and as such, does not return a value on completion. Finally, the name of the Subroutine is provided. The parentheses are used to hold any parameters which may be passed through to the Subroutine when it is called. The ''End Sub'' code marks the end of the Subroutine. The Visual Basic code that constitutes the Subroutine is placed after the Subroutine declaration and the ''End Sub''.
== Defining Visual Basic Functions ==

Navigation menu