Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progress bar while indexing
Message
From
09/12/2004 11:12:34
 
 
To
09/12/2004 10:50:42
Randy Riegel
Zimish Contracting
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
SAMBA Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00968025
Message ID:
00968031
Views:
16
NOt really. You'd have to two one of two things...

1) Use a condition on the index tag, something like FOR ProgressBar(). However, this condition will remain with the index, slowing down subsequent table updates and inserts. The UDF will always need to be available anytime you access the data. It would also slow down the index progress itself.

2) Hook into the internals in VFP and intercept the the Indexing mechanism. I don't know of any way to do this...and it may violate your EULA.

IMO, a much better idea is to display a form that says something like, "Currently creating index number 1 of 5. Please be patient". Increment each time you get to a new tag.

You could also look at SET ODOMETER and SET STATUSBAR ON.


>Is there any way to show a prograss bar while creating an index file (.idx)? I'm pulling data from a DBF which is created by a third party product and has no index. When my app starts it creates an index using "index on myfield to myfile.idx". While my program is indexing all it shows is the records counting in the status bar. Is there anyway to show a progress bar when indexing?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform