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
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05