Changes

Jump to: navigation, search

Visual Basic Modules and Procedures

2 bytes added, 19:39, 30 July 2007
Visual Basic Code Procedures
Visual Basic provides two types of procedures:
* '''functions''' - Functions are procedures which perform a task and return a value when completed.
* '''subroutines''' - Subroutines are procedures which perform a task but return no value when completed.
It is especially useful to be able to return values from ''functions''. For example, the function may need to return the result of the task it performed (perhaps the result of a calculation). A function might also return a True or False value to indicate when the task was performed successfully. The Visual Basic code which called the function then then act based on the returned value.

Navigation menu