Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forceing screen to update
Message
From
13/08/1998 15:06:29
Donny Sims
Independent Computer Consultants Inc
Scottsboro, Alabama, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00126578
Message ID:
00126668
Views:
19
>>I see that VFP 5.0a still has that problem with not always updating the screen when its told to (like ver 2.6).
>>
>>Lets say I have code like this:
>>
>>Thisform.Label1.Caption='lengthy process .. please wait'
>>
>>* lengthy data crunching commands here
>>
>>
>>The problem is the 'please wait' caption is not displayed until *after* the data crunching is finished, which of course defeats the whole idea.
>>
>>I've worked out a kludge for this by defining a Timer that fires a KEYBOARD ('ENTER') and adding a wait the the code as follows:
>>
>>
>>Thisform.Label1.Caption='lengthy process .. please wait'
>>
>>SMTPForm.DummyTimer.Enabled = .T.
>>SMTPForm.DummyTimer.Interval = 500
>>wait '' to dummy
>>SMTPForm.DummyTimer.Enabled = .F.
>>
>>* lengthy data crunching commands here
>>
>>
>>While this does get the 'please wait' to display while the user is having to wait, it just does'nt seem a proper OOP way to handle the problem, does anyone have a more elegant solution ?
>
>Or
>set cursor off
>wait '' window timeout .01
>set cursor on

Guess I should have checked the manual on the wait command sometime after switching from dBASEIII to FoxPro, just never occured to me that their would be added functionality. Anyway, even though your code is much more direct than mine it still does basically the same thing. I guess what I'm really hopeing for is a custom label class that has the problem fixed so that with that nifty inheritance thing I don't have to worry about it anymore.
Donny Sims

Life is what happens to us while were busy making other plans.
- John Lennon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform