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

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

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

Post by 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

Guest

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

Post by Guest » Wed 22 Jun 2005 04:23

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

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Wed 22 Jun 2005 07:19

Parameter name usually corresponds to the field name.

Post Reply