ZennoLab Assemblies Documentation
Value Property (IGlobalVariable)
Example 
Gets or sets value of global variable.
Syntax
object Value {get; set;}

Property Value

Type: dynamic

The value of global variable.

Example
The following example demonstrates using Value property.
In this example value of global variable cast to System.Object. But it's not necessary, because Value property is dynamic and can be any type.
// get global variable
IGlobalVariable gv = project.GlobalVariables["MyNamespace", "MyGlobalVariable"];
 
// get value of global variable
object value = gv.Value;
 
// set value of global variable
gv.Value = 0;
// get global variable
$gv = $project->GlobalVariables->get_Item("MyNamespace", "MyGlobalVariable");
 
// get value of global variable
$value = $gv->Value;
 
// set value of global variable
$gv->Value = 0;
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IGlobalVariable Interface
IGlobalVariable Members
IGlobalVariables Interface
ILocalVariable Interface

Send Feedback