PgDAC
Returns an attribute's ordinal position in object.
TAttribute
property AttributeNo: Word;
Use the AttributeNo property to learn an attribute's ordinal position in object, where 1 is the first field.