Yes. It's weird. It works perfect in VFP6 that's why I wonder what happened in VFP7?
ON ERROR DO errtrap WITH ERROR(), PROGRAM(), LINENO()
PROCEDURE errtrap (nError, cProgram, nLine)
etc.
nError, cProgram, nLine returns .F.
>Jess,
>
>Neither of functions ERROR(), PROGRAM() or LINENO() returns .f. It looks like actual line of code is
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 >
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net
CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."