Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forceing screen to update
Message
De
13/08/1998 16:10:51
 
 
À
13/08/1998 12:20:52
Donny Sims
Independent Computer Consultants Inc
Scottsboro, Alabama, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00126578
Message ID:
00126698
Vues:
24
>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 ?


I do something similar to Jeff...

WAIT WINDOW NOWAIT "Lengthy processing"
* Processing goes here
WAIT CLEAR

I've never had a problem with it.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform