Solved

try... except...

Posted on 2002-07-08
2
148 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
Comment Utility
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
Comment Utility
Thanks alot!!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 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

11 Experts available now in Live!

Get 1:1 Help Now