Board index » delphi » How to validate date entered by user?
name
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
name
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
How to validate date entered by user?Borland C++ builder Newbie simple qn: |
?íé?òéê ?éò???
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How to validate date entered by user?Try defining a edit mask. Use TMaskEdit (or something like this, I don't name <al_...@candle.com> D?? ??? <33CF825C.5...@candle.com>... Quote> Borland C++ builder Newbie simple qn: |
Szasz Danie
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How to validate date entered by user?Hi OnExit event or on clicking the Ok button in the dialog you can take the text in Good luck. Keep in touch Dany Quote?? ????? wrote: Szasz Daniel Tel : +972-4-8424580, +972-50-556392 Email : da...@israsrv.net.il dan...@mind.co.il Country : Israel Address : St. Sivtei Israel No. 26A/7 Kiriat Haim 26275 |
Mike Duf
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How to validate date entered by user?Not only is MaskEdit buggy and annoying for anyone who isn't used to Duff Szasz Daniel <da...@israsrv.net.il> wrote in article Quote> Hi - Hide quoted text - - Show quoted text - Quote> > > Borland C++ builder Newbie simple qn: |
Neil P. Truic
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:How to validate date entered by user?If you are using a TDateField, date validation is performed automatically, if (dtField.AsDateTime < StrToDate('01/01/1997')) or (dtField.AsDateTime Quote> StrToDate('12/31/1997') then I notice you're using C++ Builder...the above code is Delphi, but I'm sure Mike Duff <d...@mcs.com> wrote in article Quote> Not only is MaskEdit buggy and annoying for anyone who isn't used to |