Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel Object Interfaces Reference > Using Siebel Visual Basic and Siebel eScript > Configuring Error Handling > Declaring a VariableThis topic describes how to declare a variable. Declaring a Local VariableThis topic describes how to declare a local variable. You can access the value of a local variable only in the script where you define the local variable.
Example of Declaring a Local Variable in Siebel VBThe following example declares a local variable in Siebel VB: Sub WebApplet_Load Example of Declaring a Local Variable in Siebel eScriptThe following example declares a local variable in Siebel eScript: function WebApplet_Load () Declaring a Module VariableThis 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.
The following example declares a module variable in Siebel VB: (general) Declaring a Global VariableThis topic describes how to declare a global variable.
Do Not Use a Global Variable to Reference a Siebel ObjectDo not use a global variable to reference a Siebel object, such as a business component or business object. If you must reference a Siebel object, then set the global variable to Nothing when you no longer require the object, or in the Application_Close event. If you do not set the variable to Nothing, then a memory problem might occur. Siebel CRM cannot release from memory the object that the global variable references until the variable no longer references the object. If you must create a global variable for a business component, then make sure a global variable for the business object exists. For more information, see Application_Close Event. |
![]() ![]() |
Siebel Object Interfaces Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |