Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Error...Ok in VFP6 not in VFP7
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00551946
Message ID:
00552368
Vues:
18
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."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform