>>I put it in Form.Activate now (it was in different place) and it still works Ok. Maybe, your loop code is something specific. Try it with 'empty' loop, just DOEVENTS.
>
>I thought my loop was as 'empty' as it can be. Here is the code (I borrowed it from Anatoliy's example):
>
>
>LOCAL nIndex
>DO WHILE NOT thisform.lCancel
>
> CREATE CURSOR cs (num N(10))
> FOR nIndex=1 TO 1000
> INSERT INTO cs VALUES (nIndex)
> ENDFOR
>
> ?? "."
> DOEVENTS
>
>ENDDO
>RETURN
>
>
>What should I clear from my loop?
Put DOEVENTS inside the FOR loop.
If it's not broken, fix it until it is.
My Blog