CritterLover
Programmer
I have a form that performs a search based upon various criteria. Multiple searches may be performed one right after another. It searches on name, social security number and / or date of birth. The date of birth is a TMaskEdit. It works fine if there is no data put into the DOB or if data IS put there. If a date is input and then removed, the whole search blows up with:
'...raised exception class EDBEditError with message 'Invalid input value. Use escape to to abandon changes'. Process stopped...'
The editmask is '!00/00/0000;1;_'
text is ' / / '
I have to be able to search on a DOB and then another criteria without exiting the form and reopening it.
I've tried creating a procedure:
procedure TFrmDVDataSrch.ValidateEdit(Sender: TObject);
but it never seems to get there. I haven't worked with methods yet so if that's involved I'd need really specific information on how to do that. I'm still pretty new to Delphi. What am I doing wrong? Any help is much appreciated!
'...raised exception class EDBEditError with message 'Invalid input value. Use escape to to abandon changes'. Process stopped...'
The editmask is '!00/00/0000;1;_'
text is ' / / '
I have to be able to search on a DOB and then another criteria without exiting the form and reopening it.
I've tried creating a procedure:
procedure TFrmDVDataSrch.ValidateEdit(Sender: TObject);
but it never seems to get there. I haven't worked with methods yet so if that's involved I'd need really specific information on how to do that. I'm still pretty new to Delphi. What am I doing wrong? Any help is much appreciated!