PRIVATE glWasErr glWasErr = .F. CREATE CURSOR c_Test1 (nada C(10), Other L, More D, YetMore I) INDEX on YetMore TAG YetMore IF 6 = MESSAGEBOX("Run with error handler on?",4+32, "Select Test Method") ON ERROR DO ErrHand ELSE ON ERROR ENDIF IF VARTYPE(TestCol1) <> "C" ALTER TABLE c_Test1 ADD COLUMN TestCol1 C(20) ELSE ALTER TABLE c_Test1 DROP COLUMN TestCol1 ENDIF IF ! glWasErr =MESSAGEBOX("Ran fine, no errors.", 64, "No Problems") ENDIF *-------------------------------------------------------------------------- PROCEDURE ErrHand * glWasErr = .T. =MESSAGEBOX("Error " + TRANSFORM(ERROR()) + " " + MESSAGE(), 16, "BANG!!!")