Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progress bar for Indexes
Message
From
17/01/1997 18:58:42
 
 
To
17/01/1997 12:23:58
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00017692
Message ID:
00017738
Views:
68
>Is there a way to show a progress percentage bar for the reindex function? I am using VFP 3.0, will be upgrading to 5.0 soon.


Yes, but you won't like the solution.

You need to do an INDEX ON...FOR UDF(). In the UDF you need to determine if the progress meter needs to be updated and then do that if needed. THe UDF should return a "" (zero length string) because the return value will be returned as part of the key. The UDF() is also part of the key, so it will be run everytime you access the index for a SEEK or whatever. This will slow down your SEEKs. Also, the index process itself will be slower because of the access to the UDF and the display of the progress bar. One other thing, you can FOPEN() the CDX after you index and take out the reference to the UDF...this will stop the UDF from being called all the time.

Craig
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