Variant Attribute Get / Replace

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.


icon

Inputs/Outputs

  • cfxdt.png variant

    variant specifies the variant for which you want to retrieve or change an attribute.

  • cstr.png attribute name

    attribute name specifies the name of the attribute whose value you want to retrieve or change.

  • ifxdt.png attribute

    attribute returns the original value of the attribute if found? is TRUE. This parameter returns an empty attribute if found? is FALSE.

  • ibool.png found?

    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.

  • cfxdt.png attribute

    attribute specifies the retrieved or changed value of the attribute.

  • ifxdt.png variant

    variant returns the variant with the retrieved or changed attribute.

  • istr.png attribute name

    attribute name returns the name of the retrieved or changed attribute.

  • ibool.png found?

  • 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.

    Note 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.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Performance\Variant Attribute Lookup Table\Variant Attribute Lookup Table.vi