Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Progress bar for Indexes
Message
De
17/01/1997 18:58:42
 
 
À
17/01/1997 12:23:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00017692
Message ID:
00017738
Vues:
72
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform