Siebel Object Interfaces Reference > Programming > Variable Scoping for Siebel Script Variables >

Module Variables

Module variables defined in the (general) (declarations) section of a Siebel object (such as an applet or business component) are the next level of variable scoping. These variables are available as long as the object is instantiated and the values are accessible to scripts in the same object or module. Use Dim statements (for VB) or var statements (for eScript) in the (general) (declarations) section to declare module variables.

The following example is in Siebel VB:

(general) (declarations)
Dim ContactId as String

Code in the VB Editor in the (general) (declarations) section is illustrated in Figure 6.

Figure 6. Declarations in the (general) (declarations) Section
Click for full size image
Siebel Object Interfaces Reference