Try Catch was added in VFP 8. It's a little more work in VFP 5. You can create a custom class and implement its error handler.
Off the cuff here: Define class trycatcher as custom Procedure RunBlock THIS.TryBlock() THIS.FinallyBlock() Endproc Procedure TryBlock *-- Abstract Method for processing Endproc Procedure FinallyBlock *-- Abstract method for cleanup Endproc Procedure Error LParameters tnError, tcMethod, tnLine ASSERT .F. MESSAGE "An error occurred." Return To RunBlock EndProc EndDefine Calling methods from the TryBlock will increase debugging complexity. Be sure to clean up any object created in the TryBlock. Localized objects will not clean up correctly if an error occurs. You should have AddProperty() method of the class available to you. If you need to create objects, that is. HTH, Tracy -----Original Message----- From: willaim tormey Sent: Tuesday, March 23, 2010 9:19 AM Thanks again Alan. VFP 5.0 Enterprise Edition does not respond to TRY, CATCH OR ENDTRY in its help. My Manuals are in Meath, will look there tonight. William -----Original Message----- From: Alan Bourke Sent: 22 March 2010 20:33 On investigation the Clipper BEGIN SEQUENCE ... END structure seems to act like a TRY ... CATCH ... ENDTRY in VFP would that be right ? So: Try _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/000001caca8e$2c85e660$8591b3...@com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

