The AddGlobalVariable method adds a GlobalVariable object to the collection by name.
| GlobalVariables Collection | 
object.AddGlobalVariable(
Name,
Value)
| Part | Description | 
|---|---|
| GlobalVariables | Expression that evaluates to an object in the Applies To list | 
| Name | Name of the global variable | 
HRESULT AddGlobalVariable(BSTR Name, VARIANT Value);
HRESULT pGlobalVariables->AddGlobalVariable (BSTR Name);