Paul
Sat Dec 29 20:37:18 CST 2007
Just got another one:
Microsoft Visual FoxPro has encountered a problem and needs to close.
We are sorry for the inconvenience.
"Paul Pedersen" <nospam@no.spam> wrote in message
news:enq5QfoSIHA.4196@TK2MSFTNGP04.phx.gbl...
>I guess I didn't make myself clear. I'm talking about C0000008-style
>errors.
>
>
> "Olaf Doschke" <olaf.doschke@t-aufderlinie.de> wrote in message
> news:eEVDAHnSIHA.3864@TK2MSFTNGP03.phx.gbl...
>> Hi Paul,
>>
>> there's a chapter on error handling in the help
>> that's more verbose than what I can write here.
>>
>> But in short, you can write an
>> ON ERROR
>> handler that would handle all errors, you can
>> handle error locally by TRY..CATCH..FINALLY..ENDTRY
>> and you can use ERROR() events in most
>> objects.
>>
>> If the error occurs, values of
>> ERROR(), MESSAGE(), MESSAGE(1), LINENO(),
>> LINENO(1) and POGRAM() are helpful,
>> but you can get most of these infos also
>>
>> with AERROR() and with ASTACKINFO().
>>
>> You could put all these infos in a cursor,
>> cursortoxml the data and send that to you
>> via mail or at least store it in an error table.
>>
>> Then you can cancel, return or retry with
>> CANCEL
>> RETURN
>> or
>> RETRY
>>
>> Take a look here:
>>
http://fox.wikis.com/wc.dll?Wiki~ErrorHandling~VFP
>>
>> Bye, Olaf.
>
>