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:



Dimensioned inside a subprogram or function. The variable is accessible only to the subprogram or function that dimensioned it.


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.


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.

Siebel VB Language Reference