Jess,
Neither of functions ERROR(), PROGRAM() or LINENO() returns .f. It looks like actual line of code is or foxpro interprets it for some reason as
ON ERROR DO ERRTRAP
Only this way can you get all .f. as parameter values in ERRTRAP program.
>Our forms are subclassed from our custom set of classes. In the main program, I have that ON ERROR.. line of code. The errtrap is a separate program.
>
>TA
>>>It works modular but if error is inside the form, it does not. I don't know why?
>>>
>>>The errtrap program is successfully invoked but parameters are always .F.
>>< SNIP >
>>
>>Hi Jess,
>>
>>Works for me. Below's my test code. Can you post your code that reproduces the problem?
>>ON ERROR DO ERRTRAP WITH ERROR(), PROGRAM(), LINENO()
>>
< SNIP >
--sb--