## GetGlobal

### Introduced

v5.0

### Description

Retrieves the value of a global variable set with SetGlobal or SetGlobalObject.

### Scripting Syntax

    oVariant = GetGlobal( in_VariableName );

### Return Value

The Variant value set by a call to SetGlobal. If the global variable does not exist then null is returned.

### Parameters

Parameter | Type | Description
--- | --- | ---
in_VariableName | String | Name of the variable to look up

### Examples

#### 1. JScript Example

    // See SetGlobal for a JScript example using GetGlobal

#### 2. VBScript Example

    ' See SetGlobal for a VBScript example using GetGlobal

### See Also

SetGlobal SetGlobalObject