Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make word wrap off using modi file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00732929
Message ID:
00733042
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform