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 

Get the error msg or number

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical
View previous topic :: View next topic  
Author Message
Joe Real
Guest





PostPosted: Fri Sep 19, 2003 9:16 pm    Post subject: Get the error msg or number Reply with quote



let me write a try except block:

try
statement1;
statement2;
dangerouslyperformingstatement;
except
showmessage('The error number is:');
showmessage('The error message is:');
end;

So how do you retrieve the error number or the error message so that I can show it
within the except end block?

Thanks.
Back to top
Joe Real
Guest





PostPosted: Fri Sep 19, 2003 10:47 pm    Post subject: Re: Get the error msg or number Reply with quote



Thank you sir!

I can at least use this to have a clue on the errors that just occur in about1 out
of 10,000 users out there.


In article <3f6b7354$1 (AT) newsgroups (DOT) borland.com>, "Ignacio Vazquez"
<ivazquezATorioncommunications.com> says...
Quote:
"Joe Real" <RemoveTheseFourWordsjgreal (AT) avso (DOT) com> wrote in message
[email]MPG.19d511ea2be3ceda9897cb (AT) newsgroups (DOT) borland.com[/email]...
So how do you retrieve the error number or the error message so that I can
show it within the except end block?


Back to top
Ignacio Vazquez
Guest





PostPosted: Fri Sep 19, 2003 11:52 pm    Post subject: Re: Get the error msg or number Reply with quote



"Joe Real" <RemoveTheseFourWordsjgreal (AT) avso (DOT) com> wrote

Quote:
I can at least use this to have a clue on the errors that just occur in
about1 out
of 10,000 users out there.

Take a look at madExcept:

http://www.madshi.net/

Cheers,
Ignacio




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical 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.