DisplayObjLabels(Handle, ObjectType, [TableName])

Lists the property names in an object's body or subtable. If TableName is specified then the function returns the column headings otherwise it returns the body properties. To get a list of an object's subtables use DisplaySubtableNames