ZennoLab Assemblies Documentation
Variables Property
See Also  Example Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoPosterProjectModel Interface : Variables Property

Glossary Item Box

Get a collection of local variables that can be accessed name.

Syntax

C# 
ILocalVariables Variables {get;}

Property Value

Type: ZennoLab.InterfacesLibrary.ProjectModel.Collections.ILocalVariables

A collection of local variables.

Example

The following example uses Variables property of "project" for getting and setting value of local variable.
C#Copy Code
// get local variable
ILocalVariable lv = project.Variables["MyLocalVariable"];
 
// set value
if (lv.Value == "5") lv.Value = "0";
PHPCopy Code
// get local variable
$lv = $project->Variables["MyLocalVariable"];
 
// set value
if ($lv->Value == "5") $lv->Value = "0";

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

© 2013 All Rights Reserved.