Subject Re: [IBO] DisplayFormat
Author Artur Anjos
Jason:

(unique = just one field)

What I want to do is give the possibility to the user to change the DisplayFormat property.

I'm using TIBOQuery in a Quantum Grid.
The query was build in RunTime by the user.

I'm abble to get the current format reading TIBOQuery.InternalDataSet.Field[xx].DisplayFormat. And I'm abble to change it, but changing it just works after I close & reopen the query.

Imagine that this is a Date Field and I've defined FieldName=yyyy-mm-dd in FieldsDisplayFormat. I want my users to be abble to change it to 'dd-mm-yyyy' at run time, changing the way the data is displayed on the grid.

Artur

----- Original Message -----
From: Jason Wharton
To: IBObjects@yahoogroups.com
Sent: Wednesday, October 31, 2001 5:13 PM
Subject: Re: [IBO] DisplayFormat


> Using a TIBOQuery, how can I change the 'DisplayFormat' property of a
unique Field?

Can't you just change it on the TField by casting it to whatever type it
actually is?

What do you mean by unique?

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com



Yahoo! Groups Sponsor



___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]