Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Error...Ok in VFP6 not in VFP7
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00551946
Message ID:
00552929
Views:
23
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform