Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a way to show processing
Message
 
À
22/09/2008 12:28:37
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01349528
Message ID:
01349621
Vues:
18
Jay,

I have used a simple FoxPro wait window for this whenever I use a SCAN...ENDSCAN. I know how many rows I am processing and I increment a counter each time through the SCAN so that I display the following:

Processing record xx of yy, where xx is the incremented counter and yy is the total in the scan. Here is the code:
SELECT lccursor
CALCULATE cnt() TO lntotal
lnordernbr = 1
SCAN
	DisplayStatus([Updating Order#] + STR(lnordernbr,5) + [ of ] + STR(lntotal,5))
	lnordernbr = lnordernbr + 1
                *Do some processing here
ENDSCAN	

FUNCTION DisplayStatus(lcMessage)
WAIT WINDOW NOWAIT NOCLEAR lcMessage
ENDFUNC
If you are not scanning through a table or cursor, maybe you can just use 'SET TALK ON'

HTH


>I need something visual that has almost no overhead that I can use to show a user that processing is still going on. I want it to look nice, but be very simple. I thought about just popping up a little modal window. Or maybe taking over their mouse cursor, but Foxpro doesn't always do well with that one. Any ideas?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform