Getting a list of values from a enum field

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ashlar64
Posts: 75
Joined: Thu 04 May 2006 18:56

Getting a list of values from a enum field

Post by ashlar64 » Tue 17 Jul 2007 19:39

Hello,

How can you get a list of values that are in a field? I basically want to put these values in a drop down list box.

Thanks


---Dave

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Wed 18 Jul 2007 13:06

You should use the TCustomMyDataSet.GetFieldEnum method for that.
You can find description of this method with an example in the MyDAC help.
This method was introduced in MyDAC 5.

Post Reply