How to retreive the list of an mySQL Enum / Set field
- 
				swierzbicki
 - Posts: 451
 - Joined: Wed 19 Jan 2005 09:59
 
How to retreive the list of an mySQL Enum / Set field
Hi,
How can I achieve this.
Is there any mydac method making this posible (retreive a list) so that i can automatically fill my DBCombobox with ?
Thank
			
									
									
						How can I achieve this.
Is there any mydac method making this posible (retreive a list) so that i can automatically fill my DBCombobox with ?
Thank
Hi Ikar, it's Micro0lap's that provide this functionality. Last year when i evaluated both products i noticed that theirs provide this functionality, but CRLab's Mydac is better support & speed.
Right now I solved this problem using DevEx cxDBImageLookup's and setting internally the different values. But it has one disadvantge, when you change DB you have to add/remove values from program.
			
									
									
						Right now I solved this problem using DevEx cxDBImageLookup's and setting internally the different values. But it has one disadvantge, when you change DB you have to add/remove values from program.
We have investigated the problem deeply.
Unfortunately ENUM and SET fields are very poorly supported in MySQL protocol. Moreover, TField and data-aware visual components do not provide functionality necessary to handle these fields. So implementing enhanced support for ENUMs and SETs is rather problematic. We recommend to use dictionary tables in cases where ENUM or SET fields might look suitable.
			
									
									
						Unfortunately ENUM and SET fields are very poorly supported in MySQL protocol. Moreover, TField and data-aware visual components do not provide functionality necessary to handle these fields. So implementing enhanced support for ENUMs and SETs is rather problematic. We recommend to use dictionary tables in cases where ENUM or SET fields might look suitable.