Ok so actually an exit is the best way, I though an Exit would always exit the whole procedure. Good to know

 

Jason

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Trevor Jones
Sent: Friday, 21 July 2006 2:11 p.m.
To: Jason
Subject: RE: [DUG] Try exiting Finally block

 

The cool thing about a try..finally block is that if you call exit in the try part, the execution jumps straight to the finally part.

 

It sounds like exactly what you are looking for (unless you are trying to NOT have the finally part execute).

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Coley
Sent: Friday, 21 July 2006 1:51 p.m.
To: [email protected]
Subject: [DUG] Try exiting Finally block

 

Hi there,

 

Is it possible to exit a try finally block or a certain criteria is met in the try section to move straight to the finally section?

 

Jason

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to