Overview | Symbol List | Example
&NATTR({obj|PART|'name'}[,data_type])
Returns the total number of attributes of a specific data type assigned to an object to a receiving variable or GRIP statement.
Read Only - Number - Greater Than Zero
Parameter |
Description |
obj |
Existing object which will be accessed in order to count the number of attributes assigned to it. |
PART |
Minor word which indicates that the part attributes will be accessed. |
'name' |
A string or string variable which represents the name of an object such as a reference set. |
[data_type] |
The parameter data_type has been assigned a value of the GPA &ATTYPE. If data_type is not specified, the default data type is variable length string. Part attributes can only have a data_type of 5 (string); the system ignores all other data_types for part attributes. |
Data Type |
Description |
1 |
Integer |
2 |
Floating point |
3 |
Date and time |
4 |
Null string |
5 |
Variable length character |
7 |
Reference |