BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I suppress pop-up error message?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Fred Gruber
Guest





PostPosted: Fri Jul 01, 2005 9:52 pm    Post subject: How can I suppress pop-up error message? Reply with quote



I post here on purpose an out of bounds value into an Access MDB:

....
FieldValues['dSingleValue']:= 1e9999; // that assignment works
try
Post; // that bombs because Field dSingleValue is defined as Single
except
Writeln('failed! ',VarToStr(FieldValues['dSingleValue])); // write to debug window
end;
....

What I find disturbing is, that although I catch the error and get this line
written to my debug window, still an error message window pops up
(giving me a very misleading hint), that I have to OK-click away.

How can I suppress this pop-up error message window?

Played already around with
SetErrorMode(SEM_FailCriticalE­rrors);
but without success...

My environment is D6 on WinXP.
Any help would be appreciated.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.