NumAttr

Syntax

<Path>.NumAttr

The read-only attribute NumAttr returns the number of user-defined attributes of the object designated by <Path>.

The first user-defined attribute has the number 1. If no user-defined attributes exist, Plant Simulation returns 0.

Return Value

The return value has the data type integer.

Example

var index: integer
for index := 1 to MyStation.NumAttr 
    print MyStation.getAttrName(index)
next

Related Topics

Tab User-defined

New