Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete the contents of a TMaskEdit.

Status
Not open for further replies.

trunkles

Programmer
Sep 27, 2006
1
NZ
Hi folks. Tearing my hair out a bit here.

I have a TMaskEdit, set to accept a date. The mask is
!99/99/00;0;_

I display a date in it. The user then selects the field and presses the delete key, emptying the field. They then exit the field and BANG! Delphi throws an "invalid input value" error.

To my mind it ain't invalid, it's a null entry, but Delphi (in this case Delphi 4 I'm afraid) knows better. Any idea how I can coerce it into accepting a "delete-press-then-exit-the-field"?

All ideas gratefully accepted!

Thankies!

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top