Solved

try... except...

Posted on 2002-07-08
2
150 Views
Last Modified: 2010-04-04
Hello!

What am I doing wrong ?

I want to intercept an exception without getting it to pop out.  Here a sample code:

try
max := 0;
temp := FloatToStr(100 / max);
except
  showmessage('error');
end;

Here, I want to get the showmessage BUT NOT the Delphi error of division by 0.  I know it sounds stupid, but now I get both!

Any hint ??
Thanks!!
0
Comment
Question by:qas
2 Comments
 
LVL 20

Accepted Solution

by:
Madshi earned 50 total points
ID: 7137871
You're not doing anything wrong. It's correct what you did.

The Delphi error box only is shown inside of the IDE this way. Try it outside of the IDE and the Delphi box will not be shown.

Regards, Madshi.
0
 

Author Comment

by:qas
ID: 7137893
Thanks alot!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now