lResult = .T. TRY <some codes> If NOT <condition1> ERROR <cDesciptiopm of unfulfilled condition1> // which generate error 1098 endif <some codes> If NOT <condition2> ERROR <cDesciptiopm of unfulfilled condition2> endif . . . <some codes> If NOT <condition N> ERROR <cDesciptiopm of unfulfilled condition N> endif . . . CATCH TO oErr MESSAGEBOX(oErr.Message) lResult = .F. ENDTRY RETURN lResultEven though I like to code in the above format... but I find it difficult to debug!
TRY . . . CATCH TO oErr IF oErr.ERRORNO = 1098 MESSAGEBOX(oErr.Message) lResult = .F. ELSE (Prompt error message like normal) (bring up the debbuger for the oErr) END ENTRYIs it possible to do the (Prompt error message like normal) and (bring up the debbuger for the oErr) as above?