There is no direct resume next support in Delphi, but Delphi does support goto's. Having said that, in my many years of programming in Delphi and before that in Turbo Pascal, I have never had to use the goto statement.
VB does not support structured exception handling (SEH), so you end up having to write code that looks like this: On Error GoTo SomeLabel DoSomething1 If CheckForError1 then DoHandleError1 DoSomething2 If CheckForError2 then DoHandleError2 GoTo EndLabel SomeLabel: SomeErrorHandlingCode Resume Next EndLabel: In Delphi, you ought to use SEH: try DoSomething1; DoSomething2; except HandleError; end; or if you need to be more specific about which errors to handle: try DoSomething1; DoSomething2; except on Exception1 do HandleError1; on Exception2 do HandleError1; end; The SEH code tends to be easier to read - all code logic is presented in one block and all error logic in another. SEH is also more reliable. Any unhandled errors propagate to the higher level and get handled there, whereas with VB the On Error statement only applies for the sub or function. If you forget one, you immediately get a run time error. SEH also has many other uses - far too many to list in an email. Hope this helps. Dennis. ----- Original Message ----- From: "Traci Sumpter" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Monday, October 14, 2002 10:59 AM Subject: [DUG]: Resume Next in Delphi > > Newbee at Delphi, Have done VB before and is wondering if Delphi has the > same sort of function as resume next or resume LABEL: > > I know the try except and try finally, but am wondering how to continue or > retry in Delphi... Hope my question is clear>> > > > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/