ESBPCS for VCL
Date Edit Question
Thread Starter: Chris Started: 9/8/2007 7:39 PM UTC
Replies: 2
Date Edit Question
Hi All,

First of all, I'd like to say that ESBPCS components and routines are terrific. I get alot of use out of them. Thanks to Glenn and his team,

I have a question when using the Date Edit and the Calendar Edit. I would like to enter a date without having to enter the slashes  /. When I do, I receive an error message EConvertError. Is there a way to enter a date without entering the slashes. As an example, I would like to enter 09082007 and when I exit the Date Edit, it converts to 9/8/2007.

I did try setting the IgnoreConvertError to true, but it didn't help.

Thanks in advance.
Chris
RE: Date Edit Question
Chris,

What version of ESBPCS are you using?

I did a quick test in the CalendarDemo program, and when I enter 09082007
into the CalEdit, it sees it as 9 August 2007 (since my Regional Settings
are for dmy) and displays as 9/08/2007 when the control loses focus.

You might get an EConvertError whilst in the IDE - but this is just because
the control is catching the event - we do suggest in the FAQ about disabling
notification of this Event. In any case, try running outside the IDE and it
should work as you want.


Glenn Crouch, mailto:glenn@esbconsult.com
ESB Consultancy, http://www.esbconsult.com
Home of ESBPCS, ESB Calculators, ESBStats and ESBPDF Analysis
Kalgoorlie-Boulder, Western Australia
Re: Date Edit Question
I disabled the notification and it's working fine. Thanks

Chris