Subject | Re: [IBO] TIB_DateTimeEnh - odd editor behaviour |
---|---|
Author | Geoff Worboys |
Post date | 2007-03-28T11:30:54Z |
> Hello ( Geoff ;-) )Hi Paul,
> IBO 4.7.16, FB 1.5 SQLDialect 1, Enh 2.2.1, D6, short dateNote that IBO provides some defaults of its own for date edit
> format dd/MM/yy
> I have odd behaviour with a TIB_DateTime edit. Clicking the
> calendar drop down and clicking 28 march puts '/28/0307' in
> the display, when the control is exited this goes to '28/03/07'.
> Clicking into the display puts it back to '/28/0307'
> pressing delete gives '/ / |' where '|' is the carret.
> Typing '280307' produces '/28/0307', exiting control goes to
> '28/03/07'.
masks and displays - and while these work OK with USA or
non-enhanced mask processing they are not optimal for the
combination of enhanced mask processing in non-USA.
I find an explicit edit mask of:
::EM::!99!/!99!/!9999;0;_;0
works very well. For two digit years (if you must) you can
probably modify this to:
::EM::!99!/!99!/!99;0;_;0
with some success. I set these by domain (you could use the
SqlType) in my apps to save bother.
The enhanced mask mode is sort of expected by the enh date
input processing - as this allows fairly intelligent guessing
of partial date inputs.
Please let me know if you can make do with explicit masks.
If not I will have to find some appropriate way to override
the IBO defaults in my TIB_DateTimeEnh control.
--
Geoff Worboys
Telesis Computing