Visual Basic 2008 9.0 .NET Examples and Ebook
  Home

Procedures and Functions

Vorig Onderwerp

Arrays

|

Object Oriented Programming

Volgend Onderwerp

Local Variables and Argument Variables

Vorig Onderwerp

Arguments - ByVal and ByRef

|

Module Variables

Volgend Onderwerp
-


So far, we've only used local variables and argument variables.

Local variables are locally declared within a routine ( procedure ). Their scope ( or range of use ) starts at the declaration, and ends at the end of the routine in which they are declared.
Outside that routine this variables can not be used.

Argument variables are declared in the argument list ( between parentheses in the signature of the routine definition ), and can be accessed between Sub and End Sub of the declaring routine.

As long as an activation record for a routine exists on the calling sequence ( as long as a routine is on the callstack ), all local and argument variables of this routine are loaded into memory.


Updated On : 2008-11-06

Published On : 2008-11-06

Local Variables and Argument Variables

Vorig Onderwerp

Arguments - ByVal and ByRef

|

Module Variables

Volgend Onderwerp

Procedures and Functions

Vorig Onderwerp

Arrays

|

Object Oriented Programming

Volgend Onderwerp
  Home  
Nederlands
Nederlands

Add to favorites (IE).


No printable version available.