IsGlobal Property

Indicates whether or not a variable has global scope. Global variables are shared amongst documents while local variables are specific for one specific document.

Syntax

Property IsGlobal As Boolean

Parameters

None

Examples

IronPython

#Get variable global flag
is_glob = Host.ScriptData.Variable[varName].IsGlobal

#Set variable global flag
Host.ScriptData.Variable[varName].IsGlobal = True


C#

//Get variable global flag
bool is_glob = ScriptData.Variables[varName].IsGlobal;


//Set variable global flag

ScriptData.Variables[varName].IsGlobal = true

Remarks