Thanks Mike. This is what I was looking for. Although the doc doesn't show it working this way. Must be one of those undocumented features<g>.
Thanks everyone else who responded!
-- John
>>I can handle the trap part, but how do I turn around and send the non-trapped error to VFP?
>
>On error do errhnd with error()
>
>Proc errhnd
>lparam liError
>
>
>*-- Raise the error here
>error(liError)
>
>The new try/catch functionality in vfp8.0 would probably be a better solution for what you're trying to do, though.
-- John Kiernan
"Maybe Amelia Earhart was just stealing the plane".