Any idea how to retreive the fieldname assign to a specific parameter ?

Any idea how to retreive the fieldname assign to a specific parameter ?

Postby swierzbicki » Tue 21 Jun 2005 07:06

Hi,

I'm building an SQL with parameters.
At runtime, a pagecontrol will automatically generated edit controls uppon the discovered parameters.

Right now, every param are handled with Variant. This is not a proper solution. I want to create the corresponding edit control type

If the param is "assigned" to a datetime, a TDateTime Picker must be created ... and so on.

Is there a way to know which param belongs to which field ?

Thank you
swierzbicki
 
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Re: Any idea how to retreive the fieldname assign to a specific parameter ?

Postby Guest » Wed 22 Jun 2005 04:23

Try to use COMMENT option for column's in database. (see MySQL manual CREATE TABLE :)
Guest
 

Postby Ikar » Wed 22 Jun 2005 07:19

Parameter name usually corresponds to the field name.
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56


Return to MySQL Data Access Components