Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why this code would fail?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01089859
Message ID:
01089968
Vues:
21
>
>>if not m.plError
>>
>>
>>The logic is: if I'm at calling my trigger the first time, I declare bunch of global (private) variables. If I'm calling the trigger recursively, I'm not declaring those variables but relying on them being there. However, something triggers plError varible to be not found. I suspect, that VFP system variable _triggerlevel somehow is not updated correctly.
>>
>>Or can anyone here spot the problem in the logic?
>>
>>Thanks in advance.
>
>
>Could you change the IF statement?
>
>
>IF VARTYPE(plERROR) = "U" .OR. NOT m.plError
>   ****
>ENDIF
>
Yes, I can and was thinking about it, however this would hide the problem, IMO. In other words, AFAIK, this should never happen, so it would be interesting to determine, why does it happen and which condition I didn't take into account.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform