>Thanks George,
>
>Good old foxtools.fll still surprises me.
>
>But a problem is created with this approach, the modify file command creates a "wait state" that is lost when the "nowait" clause is used.
>There is any way to create a wait state for this case?
>I have seen things like this:
>
>
>DO WHILE WONTOP() = "editingwindowname"
> DOEVENTS()
> SLEEP(30)
>ENDDO
>
>
>But I'm not sure if that is a good thing to use.
Maximo,
In a tight loop, I'd recommend against code like the above. First, the Sleep call (assuming this is the call to the API) simply yields VFP's processing time, which might cause keystrokes to perform irradicately. Second, I'm not sure if DoEvents() wouldn't cause the same thing.
I recommend either Ed's or David's approach. Both eliminate this problem and are easier to maintain.
George
Ubi caritas et amor, deus ibi est