Hi,
I'm trying to set a DisplayFormat to a Field at run time.
It's through an TMyQuery component. Just like for a TMyTable,
when you right-click on a TmyTable, you can access the fields
available and then set a DisplayMask for each of the present
fields.
How can I do this programatically?
I tried (C++)
qryGeneric->Fields->Fields[1]->DisplayFormat = "#.0" ;
But it seems that something's wrong. Either Fields[n] ir DisplayFormat
is not a member of the left-most member.
This drives me nuts.
Any clue?
Thanks for any help.
Steve
Accessing Field DisplayFormat at runtime
Re: Accessing Field DisplayFormat at runtime
DisplayFormat isn't a property of TField , but some its descendants.
You can read details about it in Delphi help.
You can read details about it in Delphi help.
Re: Accessing Field DisplayFormat at runtime
Hi Anonymous,
I have almost exactly the same problem ur having except that im using paradox (not my choice... grrr!) im just wondering if you have found a solution to this already, id appreciate it very much if you can share it with me.
Thanks!
I have almost exactly the same problem ur having except that im using paradox (not my choice... grrr!) im just wondering if you have found a solution to this already, id appreciate it very much if you can share it with me.
Thanks!
Anonymous wrote:Hi,
I'm trying to set a DisplayFormat to a Field at run time.
It's through an TMyQuery component. Just like for a TMyTable,
when you right-click on a TmyTable, you can access the fields
available and then set a DisplayMask for each of the present
fields.
How can I do this programatically?
I tried (C++)
qryGeneric->Fields->Fields[1]->DisplayFormat = "#.0" ;
But it seems that something's wrong. Either Fields[n] ir DisplayFormat
is not a member of the left-most member.
This drives me nuts.
Any clue?
Thanks for any help.
Steve
-
Guest
-
a.alekizoglou
- Posts: 32
- Joined: Fri 22 Sep 2006 08:32