Skip to content

Entity_Field_Has_Attribute - cEntity

Include: Use Db\cEntity.pkg

Tests whether a field attribute is available.

Type: Function

Return data type: Boolean

Parameters

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

Syntax

Function Entity_Field_Has_Attribute Integer iField String sAttribute Returns Boolean

Call

Get Entity_Field_Has_Attribute of hoObj iField "DefaultIndex" to bHasAttribute

Description

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