Subject | Re: [IBO] Time format |
---|---|
Author | Nando Dessena |
Post date | 2001-02-05T16:59:52Z |
Nico,
event; I had to allow editing also (so that you write 2:30 in an edit
box and 1.5 is written to the database) and the OnSetText came to help.
This applies only if you are using the TIBO... components, I fear.
To anyone more knowledgeable that me on the matter (doesn't take much!
;-)): is there a similar mechanism in native IBO? Could it be easily
implemented?
--
____
_/\/ando
> I have double precision values stored in a table. Those values represent hours and minutes. Example : 1.5 : I want to display the 1.5 in a grid like 01:30, so the user will read it as 1 hour, and 30 minutes, is it possible to have this value displayed like this ??I once solved exactly the same problem by using TField's OnGetText
event; I had to allow editing also (so that you write 2:30 in an edit
box and 1.5 is written to the database) and the OnSetText came to help.
This applies only if you are using the TIBO... components, I fear.
To anyone more knowledgeable that me on the matter (doesn't take much!
;-)): is there a similar mechanism in native IBO? Could it be easily
implemented?
--
____
_/\/ando