ZennoLab Assemblies Documentation
Group Property
Example 
Gets or sets group of local variable.
Syntax
VariableGroupTypeV4 Group {get; set;}

Property Value

Type: ZennoLab.InterfacesLibrary.ProjectModel.Enums.VariableGroupTypeV4

The group of local variable.

Remarks
This field used for determining type of variable. It can be auto-generated variable (this variables generated by ZennoPoster) or user-created variable.
Example
The following example demonstrates using Group property.
// get local variable
ILocalVariable lv = project.Variables["VariableName"];
 
// if variable is auto-generated
if (lv.Group == VariableGroupTypeV4.AutoGenerated)
{
    // show follow message
    System.Windows.Forms.MessageBox.Show(String.Format("Local variable {0} is auto-generated", lv.Name), 
    "Local variable type information");
}
 
// if variable is user-created
if (lv.Group == VariableGroupTypeV4.UserDefined) 
{
    // show follow message
    System.Windows.Forms.MessageBox.Show(String.Format("Local variable {0} is user-created", lv.Name), 
    "Local variable type information");
}
// get local variable
$lv = $project->Variables->get_Item("VariableName");
 
// if variable is auto-generated
if ($lv->Group == VariableGroupTypeV4::AutoGenerated)
{
    // show follow message
    System\Windows\Forms\MessageBox::Show(String::Format("Local variable {0} is auto-generated", $lv->Name), 
    "Local variable type information");
}
 
// if variable is user-created
if ($lv->Group == VariableGroupTypeV4::UserDefined) 
{
    // show follow message
    System\Windows\Forms\MessageBox::Show(String::Format("Local variable {0} is user-created", $lv->Name), 
    "Local variable type information");
}
Requirements

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

See Also

Reference

ILocalVariable Interface
ILocalVariable Members
VariableGroupTypeV4 Enumeration

Send Feedback