Re: [DUG]: Handling exceptions

2003-10-13 Thread gajo
LOL, thanks for all the answers. So, there wasn't a problem after all. I tried writing the exception but got an error, then searched in the Help for some clues and found the HandleException, that's how it got there. So, my app was working in the first place, only that the debugger gave an error mes

Re: [DUG]: Handling exceptions

2003-10-13 Thread Neven MacEwan
Also have a look at the val function Neven - Original Message - From: "gajo" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Tuesday, October 14, 2003 8:52 AM Subject: [DUG]: Handling exceptions > Hi, > &

RE: Re: [DUG]: Handling exceptions

2003-10-13 Thread Conor.Boyd
IIRC Tools, Debugger Options, IDE tab. Nope, code won't work, 'cos of the call to App.HandleException ;-) HTH, Conor -Original Message- From: Steve Peacocke [mailto:[EMAIL PROTECTED] [snip] There is a way to switch off showing exceptions within the Delphi IDE but I can's remember whe

Re: [DUG]: Handling exceptions

2003-10-13 Thread Robert martin
TECTED]> Sent: Tuesday, October 14, 2003 9:16 AM Subject: Re: [DUG]: Handling exceptions > aNum := InttoStrDef(SomeText, -1); > > if (aNum <> -1) then begin > > > end; > > Rob Martin > Software Engineer > > phone 03 377 0495 > fax 03 377 0496 > w

Re: [DUG]: Handling exceptions

2003-10-13 Thread Steve Peacocke
The simple exception works as follows... procedure TForm1.Button1Click(Sender: TObject); var i: integer; begin try i := StrToInt(Edit1.text); except ShowMessage('Got Here!'); end; end; However, it will give an exception in the Delphi IDE debugger, but not in the application

Re: [DUG]: Handling exceptions

2003-10-13 Thread vss
urn 123 HTH Jeremy -Original Message- From: "Paul Mckenzie" <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Date: Tue, 14 Oct 2003 09:15:17 +1300 Subject: Re: [DUG]: Handling exceptions > This is in D6 HTH > > Converts a string that r

RE: [DUG]: Handling exceptions

2003-10-13 Thread Conor.Boyd
Your code is nearly correct. However, you don't need the call to Application.HandleException - this is presumably what is still showing you the unwanted error message. You don't need the call because by writing a try..except block, you are handling the exception yourself - in this case, by not

Re: [DUG]: Handling exceptions

2003-10-13 Thread Robert martin
lt;[EMAIL PROTECTED]> Sent: Tuesday, October 14, 2003 8:52 AM Subject: [DUG]: Handling exceptions > Hi, > > I have to convert a string to integer. When a string is not correct, then > the StrToInt procedure raises an exception, and the user gets an error > message. > > I w

RE: [DUG]: Handling exceptions

2003-10-13 Thread Jason Coley
True; end; Regards Jason -Original Message- From: gajo [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 October 2003 8:52 a.m. To: Multiple recipients of list delphi Subject: [DUG]: Handling exceptions Hi, I have to convert a string to integer. When a string is not correct, then the St

Re: [DUG]: Handling exceptions

2003-10-13 Thread Tracey Maule
a number');   - Original Message - From: "gajo" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Tuesday, October 14, 2003 8:52 AM Subject: [DUG]: Handling exceptions > Hi,> > I have to convert a string to i

Re: [DUG]: Handling exceptions

2003-10-13 Thread Paul Mckenzie
Message - From: "gajo" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Tuesday, October 14, 2003 8:52 AM Subject: [DUG]: Handling exceptions > Hi, > > I have to convert a string to integer. When a string is not corr

[DUG]: Handling exceptions

2003-10-13 Thread gajo
Hi, I have to convert a string to integer. When a string is not correct, then the StrToInt procedure raises an exception, and the user gets an error message. I would like to prevent the error message from being displayed. How can I do that? I was trying the following with no results: try a :=

RE: [DUG]: Handling Exceptions

2003-08-18 Thread Myles Penlington
lington [mailto:[EMAIL PROTECTED] Sent: Tuesday, 19 August 2003 09:17 To: Multiple recipients of list delphi Subject: RE: [DUG]: Handling Exceptions Hmm, If you debug, I would like to know the values causing the issue. What you are saying - should not happen. However we had a similar case recently

RE: [DUG]: Handling Exceptions

2003-08-18 Thread Myles Penlington
watson etc . Ie nothing - just disappeared from the task manager - fastest program close I have ever seen. Myles. -Original Message- From: Vaughan, Benjamin Carl [mailto:[EMAIL PROTECTED] Sent: Monday, 18 August 2003 15:02 To: Multiple recipients of list delphi Subject: [DUG]: Handling

[DUG]: Handling Exceptions

2003-08-18 Thread Vaughan, Benjamin Carl
Hi All, I have currently been working on an Exception handler for one of my applications and was giving it some test cases. I have found some exceptions that can not be handled.. e.g var aList : TStringList; begin Showmessage(aList.Text); end; This sort of exception basically exits you out