Declaring a Module Variable

This topic describes how to declare a module variable. In this situation, a module is a group of methods contained in an object that you can script. For example, a business service, business component, application object, and so forth. You can access the value of a module variable in the script where you define the module variable and in other scripts in the object or module where you define the module variable. To access a module variable, an instance of the object where you define the variable must exist.

To declare a module variable

  1. Open the Siebel Script Editor.

    For more information, see Opening the Siebel Script Editor.

  2. In the navigation tree of the script editing window, expand the general tree, and then click declarations.

  3. In the script editing window, use one of the following statements in your custom script:

    • In Siebel VB, use the Dim statement.

    • In Siebel eScript, use the Var statement.

The following example declares a module variable in Siebel VB:

(general)
(declarations)
Dim ContactId as String