|LabVIEW 2015 Help|
|LabVIEW 2016 Help|
|LabVIEW 2017 Help|
|LabVIEW 2018 Help|
|LabVIEW 2019 Help|
Owning Palette: Structures
Requires: Base Development System
Right-click the border of an In Place Element structure and select the Add Variant Attribute Get / Replace option from the shortcut menu to place this border node on the In Place Element structure.
|variant specifies the variant for which you want to retrieve or change an attribute.|
|attribute name specifies the name of the attribute whose value you want to retrieve or change.|
|attribute returns the original value of the attribute if found? is TRUE. This parameter returns an empty attribute if found? is FALSE.|
|found? returns TRUE if the attribute was found with the specified attribute name and the specified attribute name is not a duplicate name of a previously found attribute. The indicator returns FALSE if the specified attribute name was not found, or if the specified attribute name was a duplicate name of a previously found attribute.|
|attribute specifies the retrieved or changed value of the attribute.|
|variant returns the variant with the retrieved or changed attribute.|
|attribute name returns the name of the retrieved or changed attribute.|
Use this border node to access and modify one or more attributes of a variant without copying the attributes out of the variant. Each attribute value you retrieve with the border node on the left side of the structure must be replaced with an attribute value using the border node on the right side of the structure.
The border node on the left side of the structure is similar to the Get Variant Attribute function. The border node on the right side of the structure is similar to the Set Variant Attribute function.
|If the attribute with the specified attribute name is not found by the node on the left side of the structure, the node on the right side of the structure ignores the attribute. To allow the node on the right side to add the attribute to the variant if the attribute was not found, refer to the example listed in the Example section for an illustration of how to add the syntax to this border node.|
Refer to the Variant Attribute Lookup Table VI in the labview\examples\Performance\Variant Attribute Lookup Table directory for an example of using the Variant Attribute Get / Replace border node.