To get the value of a nested attribute in a structured UDT, follow these steps:
- Call FNC_GetStructuredAttributeByNdx to obtain the UDT handle of the next structured UDT attribute in the hierarchy.
Repeat this step, passing in the newly obtained UDT handle as the udtHandle argument, n-2 times, where n is the nesting level of the target attribute.
- Call FNC_GetStructuredAttributeByNdx again, passing in the UDT handle of the structured UDT attribute that contains the target attribute.