Accessing Field DisplayFormat at runtime
Posted: Wed 22 Dec 2004 15:00
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
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