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:
00552368
Views:
19
Sergey,

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.

>I just ran following code and all functions worked as advertised
ON ERROR DO ERRTRAP WITH ERROR(), PROGRAM(), LINENO()
>
>a = b
>
>RETURN
>
>PROCEDURE ERRTRAP (nErrorNo, cProgram, nLineNo)
>
>cMsg = "Error number : "+ALLTRIM(STR(nErrorNo))+CHR(13)+;
>       "Origin       : "+cProgram+CHR(13)+;
>       "Description  : "+MESSAGE()+CHR(13)+;
>       "Line number  : "+ALLTRIM(STR(nLineNo))
>
>Wait WINDOW cMsg
>
>>Modified Thread:
>>
>>ON ERROR DO ERRTRAP WITH ERROR(), PROGRAM(), LINENO()
>>
>>PROCEDURE ERRTRAP (nErrorNo, cProgram, nLineNo)
>>
>>cMsg = "Error number : "+ALLTRIM(STR(nErrorNo))+CHR(13)+;
>>       "Origin       : "+cProgram+CHR(13)+;
>>       "Description  : "+MESSAGE()+CHR(13)+;
>>       "Line number  : "+ALLTRIM(STR(nLineNo))
>>
>>I didn't change anything in VFP7 but why is it that nErrorNo, cMessage, nLineNo variable parameters no longer contains expected value. It always returs .F. always.
>>
>>TIA
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."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform