Subject | RE: [IBO] TIB_DateTimeEnh - odd editor behaviour |
---|---|
Author | Paul Hope |
Post date | 2007-03-28T15:45:28Z |
Thanks Geoff
I found that the 4 digit mask allows two or 4 digit year entry and the
result is displayed as 2 digit year which is fine.
I don't normally use edit masks because some of them have been quite awkward
in the past. However I can use this as a workround - its not worth the
effort of sorting it out from my POV.
Regards
Paul
I found that the 4 digit mask allows two or 4 digit year entry and the
result is displayed as 2 digit year which is fine.
I don't normally use edit masks because some of them have been quite awkward
in the past. However I can use this as a workround - its not worth the
effort of sorting it out from my POV.
Regards
Paul
> -----Original Message-----
> From: IBObjects@yahoogroups.com
> [mailto:IBObjects@yahoogroups.com] On Behalf Of Geoff Worboys
> Sent: 28 March 2007 12:31
> To: IBObjects@yahoogroups.com
> Subject: Re: [IBO] TIB_DateTimeEnh - odd editor behaviour
>
> > Hello ( Geoff ;-) )
>
> Hi Paul,
>
> > IBO 4.7.16, FB 1.5 SQLDialect 1, Enh 2.2.1, D6, short date 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'.
>
> Note that IBO provides some defaults of its own for date edit
> 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
>
>
>
> ______________________________________________________________
> _____________
> 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
> !
> Yahoo! Groups Links
>
>
>