I've created an enumeration utilizing a TCustomAttribute descendant class (TEnumAttribute) to give each enumeration additional data (if successful, it will drive a custom component that can interrogate an enumeration and populate itself accordingly).
type
TShoppingCartType = (
[TEnumAttribute(0, 'All')]
sctAll,
[TEnumAttribute(1, 'Web Shopping Cart')]
sctWebShoppingCart,
[TEnumAttribute(2, 'Wish List')]
sctDefaultWebWishList,
[TEnumAttribute(3, 'Custom')]
sctWebCustomList
);
I can get the names and values just fine (using the corresponding TypeInfo GetEnum methods), but how can I access each value in the enumeration and access it's defined attribute?
Thanks for any info