Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Slow down display???
Message
De
22/06/2001 00:42:47
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Slow down display???
Divers
Thread ID:
00522275
Message ID:
00522275
Vues:
35
I have a program that processes some data records at the click of an on screen button. Because of the SPEED of VFP, the client is worried it isn't doing anything. Sooo, in order to "keep the client happy", I decided to add a status line that will update as the records are processed. The status line is maintained in the "loop" like thus:

thisform.mystatus.value="Record #" + str(recctr) + " of " + str(recmax) + "processed..."
thisform.mystatus.refresh

Well, again, because of the fantastic speed of VFP, the status line, basically, never appears to show anything. To double check, I put a WAIT WINDOW with this data and a TIMEOUT .25 and saw that it changed (although it also put a PRESS ANY KEY several times over in the window).

So, I need to put in a delay after my refresh to allow the data to display for the client. I tried a FOR I = 1 TO 100000 and NEXT and that seemed to work although I only saw about every 3 or 4th one. I can keep bumping this up to a higher value until all is visible but then I believe on a slower machine, it will slow even more.

There has to be a better way to do this.

Suggestions?
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform