Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does VFP get "tired"
Message
 
 
À
23/11/2004 23:59:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
00963765
Message ID:
00964528
Vues:
16
>>I have a process that runs for a few minutes, displaying a thermometer to show progress. Every now and then the display appears to "freeze" and there is no visual indication that anything is happening. However, the processing continues and finishes in the usual time. At the end of the process the screen returns to normal.
>>
>>I would really like to know why this happens, and how to avoid it.
>>
>>(This is a vfp7 application).
>
>Cyril, VFP will not update the screen if it is in a very tight/fast loop busy with something else. You need to create a slight pause after you update your thermometer to let VFP update the screen eg INKEY(0.01,"H") will probably do it. Also read up on DOEVENTS.

OK thanks, I'll give INKEY(0.01,"H") a try.


Cyril
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform