Wodzu
Wodzu

Reputation: 6979

How to extend a TFieldDef in easy and safe way?

I need an advice in problem with TFieldDef. I need to add one additional string property to the TFieldDef called Description. I want to see that property when I iterate over TFieldDefs collection. How to do this in Delphi 2007?

Thanks for your time.

Upvotes: 2

Views: 386

Answers (1)

Craig Stuntz
Craig Stuntz

Reputation: 126547

Mostly, you can't. But you can re-purpose another property such as DisplayName or Tag. You could also write a class helper, but you'd have to store the data elsewhere.

Upvotes: 6

Related Questions