SET STEP ON *-- Create the Object. ox = CREATEOBJECT("DoThis") TRY *-- Run your process ox.RunThis() CATCH TO oError *-- Process the error message *-- The ErrorNo will always be 1098 ? oError.Message FINALLY *-- Release the Object. ox=null ENDTRY *================ DEFINE CLASS doThis as Custom PROCEDURE RunThis *-- do somthing and fail. LOCAL i *-- start of method FOR i=1 TO 10 ?? "." NEXT *-- something happens, and the method fails, *-- so call ERROR with your cError message ERROR "My method failed" *-- Because the ERROR raised the error, and the CATCH caught it. *-- This part of the method is not ran. FOR i=1 TO 10 ?? "." NEXT ENDPROC ENDDEFINE>Hi everybody,