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
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