Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why this code would fail?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01089859
Message ID:
01089968
Views:
23
>
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform