Skip to content

Entity_Index_Attribute - cEntity

Include: Use Db\cEntity.pkg

Reads an index attribute by zero-based index number.

Type: Function

Return data type: String

Parameters

Parameter Type Description
iIndex Integer Zero-based index number.
sAttribute String Attribute name. Lookup is case-insensitive.

Syntax

Function Entity_Index_Attribute Integer iIndex String sAttribute Returns String

Call

Get Entity_Index_Attribute of hoObj iIndex "Name" to sValue

Description

Reads an index attribute by zero-based index number. Lookup is case-insensitive. Name is always available and returns the declared name or the stringified zero-based index number. Missing non-Name attributes return an empty string. Out-of-range index arguments raise a DataFlex error.