Skip to content

Entity_Index_Has_Attribute - cEntity

Include: Use Db\cEntity.pkg

Tests whether an index attribute is available.

Type: Function

Return data type: Boolean

Parameters

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

Syntax

Function Entity_Index_Has_Attribute Integer iIndex String sAttribute Returns Boolean

Call

Get Entity_Index_Has_Attribute of hoObj iIndex "Unique" to bHasAttribute

Description

Tests whether an index attribute is available. Lookup is case-insensitive. Name is always available; missing non-Name attributes return False. Out-of-range index arguments raise a DataFlex error.