>>
>>TRY
>> USE MYTABLE
>>CATCH
>> =MESSAGEBOX(MESSAGE())
>>ENDTRY
>>
>
>I'm using v7.0, and I believe the TRY/ENDTRY support is not in this version. At least, it's not being recognized, nor is it in my help file. Is there another approach?
>
>---Michael
LOCAL llError
lcOnError = ON('error')
ON ERROR llError = .T.
USE Mytable
IF llError
* Action
ENDIF
ON ERROR &lcOnError
By the way, TRY/CATCH is one of the coolest additions to VFP. It's second only to Intellisense.