SetSharedGlobal Method

Shared global variables are unique to the user and the user's associated session. One user's global variables are not visible to other users. The variables are global to the current user and session only. The SetSharedGlobal property sets a shared user-defined global variable, which may be accessed using GetSharedGlobal.

Syntax

Application.SetSharedGlobal(varName, value)

Argument

Description

varName

String variable or literal containing the name of the shared global variable to set

value

String variable or literal containing the value to set the variable to set

In this example, the SetSharedGlobal method is called to set a global variable called myGlobalVar in Application_Start event. The global variable can be accessed from any event. For this example, in the BusComp_WriteRecord event, the GetSharedGlobal method is called to retrieve the global variable.

The following example is for COM. SiebelApplication is an Application instance.