Siebel VB Language Reference > Siebel VB Compared to Other Basic Products > Differences Between Siebel VB and Earlier Versions of Basic >
Variable Scope in Siebel VB
The placement of variable declarations determines their scope:
|
|
Local |
Dimensioned inside a subprogram or function. The variable is accessible only to the subprogram or function that dimensioned it. |
Module |
Dimensioned in the (general) (declarations) section. The variable is accessible to any subprogram, function, or event attached to the object in whose Script window it appears. |
Global |
Dimensioned in the Application_Start event or Application.PreInvokeMethod method. The variable is accessible throughout the Siebel application. For more information, read Siebel Technical Note #217. |
|