Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Doevents
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00974245
Message ID:
00974265
Views:
31
>I have always battled this problem, so I'm going to the experts for the final say so on how to fix this. I have buttons that I want to set enabled to FALSE when a button is pressed and have hidden text become visible that says somthing like "Searching..." to let the user know that something is happening. I was told to use DOEVENTS after the code in the CLICK event that I reset the states of the buttons and the visible text, but the rest of the code in the CLICK event completes before the visual changes are made. How can I force the visual changes to happen before the rest of the code is executed?
>
>Thanks!
>Colombo.

How about posting some code? What is it that tells VFP it's supposed to call this other code before executing the rest of the Click method? Do you just have a DOEVENTS where you want that code to run? If so, that won't do it, you have to put a call to a method that shows the text, disables the button, etc in the click method.
Previous
Reply
Map
View

Click here to load this message in the networking platform