>Hi Fred,
>
>That's just the way I code. I get it to work as verbose as possible, then I refactor for efficiency. BTW, here's an interesting twist: If I move the class Refresh code into the instance and don't DODEFAULT(), the error never occurs.
>
>>Does the fact that you are always Enabled=.f. and then Enabled=.t. in the refresh cause this problem? I mean, is the fact the Enabled somehow forcing the refresh to re-execute or something? Wouldn't it be better to only Enable/Disable as needed with:
>>
>>IF PEMSTATUS(ThisForm,"FormState",5)
>> This.Enabled=(ThisForm.FormState > 0)
>>ENDIF
It wasn't meant as a comment on your coding style, only on the fact that the control was ALWAYS being disabled and then possibly being re-enabled. I was just wondering if that was causing the effect you were seeing. Interesting that it only happens when DODEFAULT() is used, and not when the code is in the instance.