Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

try... except...

Posted on 2002-07-08
2
153 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

791 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