Overview | Symbol List | Example


对象属性的数量

Synopsis

&NATTR({obj|PART|'name'}[,data_type])

Description

Returns the total number of attributes of a specific data type assigned to an object to a receiving variable or GRIP statement.

Characteristics

Read Only - Number - Greater Than Zero

Parameters

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


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.