Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a way to show processing
Message
 
To
22/09/2008 12:28:37
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01349528
Message ID:
01349621
Views:
17
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?
Previous
Reply
Map
View

Click here to load this message in the networking platform