>
>>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