Changes

Jump to: navigation, search

Visual Basic Modules and Procedures

193 bytes added, 18:16, 31 July 2007
Defining Visual Basic Functions
The scope value is either ''Private'' or ''Public'' depending on whether the Function is to be accessable from Visual Basic code outside of the current module. ''Function'' is the Visual Basic keyword indcates this is a Function rather than a Subroutine. ''functionName'' is the name of the function. ''parameters'' allows the parameters accepted by this Function to be defined. Finally, ''datatype'' defines the type of value returned by the Function.
With this syntax in mind we can create aFunction for application which will accept the String text values from our two text fields as parameters, convert them to Integers, perform the calculation and return the result: <pre></pre>

Navigation menu