Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escape problem in Vfp 5.0
Message
 
To
20/07/1998 00:19:57
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00119151
Message ID:
00119165
Views:
24
> Thank for your help. However, I still cannot access my menu hot key when my code is looping in a Do WHILE LOOP. My mouse also can't access the pull down menu at all. I can access the menu when the do while loop is completed. Any suggestion or advise.
>THank you.

Virusim,

Menus are not available while code is running. If you want the menu to respond you are goin to have to tell VFP to process events. An example of this is in the code below;
LOCAL lnCounter, done
done = .F.
lnCounter = 1
DO WHILE NOT done
   blah
   blah
   blah
   ...
   IF lnCounter%100 = 0
      DoEvents()
   ENDIF
   lnCounter = lnCounter + 1
ENDDO
Now every 100th time through the loop a DoEvents() function call will occur. The DoEvents function tells VFP to go process the events that have been queuing up while the code was running. You don't want to DoEvetns() every time through the loop because it processes the fox events and the windows events and take time to do it. Doing DoEvetns every time through the loop will cause your code to run slower than molasis in January.
Previous
Reply
Map
View

Click here to load this message in the networking platform