Variable.Item Property

<< 点击显示目录 >>

主页  PVI通信 > PVI帮助信息 > PVI Services > BR.AN.Namespace > BR.AN.PviServices > Variable Class > Variable Properties > Variable Property >

Variable.Item Property

BR.AN.PviServices .NET


Gets the subitem of a structure Variable

[Visual Basic]

Public Overloads ReadOnly Property Item( _

  ByVal varName As String _

) As Variable

  Public Get

  End Get

End Property

[C#]

public Variable this[

  string varName

] { public get; }

Parameters

varName

Name of variable

Example

Variable var = new Variable(cpuObj,"structVar");
var.Connect(); // Upload is called automatically when Connected event occurs
// Accessing variable member after upload
Variable element = var["item1"];
element.Connect();
...
...
// Accessing a submember
Variable subElement = var["stItem.subItem1"];
subElement.Connect();
...
...

See Also

Variable Class | BR.AN.PviServices Namespace | Variable.Item Overload List


Generated from assembly BR.AN.PviServices [8.1.0.4]