Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Progress bar while indexing
Message
 
 
À
09/12/2004 10:50:42
Randy Riegel
Zimish Contracting
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
SAMBA Server
Database:
Visual FoxPro
Divers
Thread ID:
00968025
Message ID:
00968044
Vues:
14
>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?

In addition to what Craig replied, you can define a window then SET TALK WINDOW WindowName. Bracket your INDEX command with SET TALK ON and SET TALK OFF. This will direct the indexing count to the window. With a little tweeking, this can look quite nice. You can also output the Table name and index number of total indexes to this window as well. When done, just release that window and make sure you return SET TALK to whatever it was before you messed with it -- lcOldTalk = set('talk') at the beginning, then SET TALK &lcOldTalk when finished.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform