Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-14-2002, 04:57 AM
FabioAvallone FabioAvallone is offline
Junior Member
 
Join Date: May 2002
Posts: 5
Default How can I treat an EDBEditError Exception?

I have a Query field with the mask '999.999.999-99' (for a document). I also have a routine that tests if the document is valid or not, based in the brasilian rules. The user digits the document number in the DBEdit. If the user tapes the complete number (Ex.: 123.456.789-12) and the document is valid, the program goes ahead. If it isnīt valid, it shows an error message and return the focus to this DBEdit.
The error that is occurring is:
- if the user digits the complete number and it is invalid (but itīs ok);
- if the number is invalid (itīs ok too);
* if the user digits something like this '123.456.___-__', then the error occurs. (when the user let it incompleted).

The exception kind is EDBEditError, but I canīt treat it with "Try...except". The error occurs BEFORE the commands in the except statements and BEFORE onExit event too.

Iīd like to thank you
See ya!
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.