Subject | Problem with TIB_DateTimePicker |
---|---|
Author | Salvatore Besso |
Post date | 2004-07-19T10:40:23Z |
hello all again,
today is the day of the problems :-)
I have found no way to have this component reflect the correct value of the
underlying field. The field in the Firebird database is defined as TIME (no
date). The picker Kind is dtkTime.
When at runtime I assign
Query.FieldByName('TIME_FIELD').AsDateTime := Now
the picker shows always the time defined at design time in the object
inspector. The same component used with Kind = dtkDate works fine and this
assignment reflects the correct date:
Query.FieldByName('DATE_FIELD').AsDate := Now
Any hints?
Regards
Salvatore
today is the day of the problems :-)
I have found no way to have this component reflect the correct value of the
underlying field. The field in the Firebird database is defined as TIME (no
date). The picker Kind is dtkTime.
When at runtime I assign
Query.FieldByName('TIME_FIELD').AsDateTime := Now
the picker shows always the time defined at design time in the object
inspector. The same component used with Kind = dtkDate works fine and this
assignment reflects the correct date:
Query.FieldByName('DATE_FIELD').AsDate := Now
Any hints?
Regards
Salvatore