Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reindex all tables in the database
Message
De
19/09/2004 09:40:35
 
 
À
18/09/2004 12:35:17
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00943748
Message ID:
00943829
Vues:
22
I hope this will help
CLOSE ALL
CLOSE DATABASE
OPEN DATABASE(sys(5)+alltrim(sys(2003)))+'\TABLES\weight' EXCLUSIVE

LOCAL LATABLES[1],;
I

CLOSE TABLES
FOR I=1 TO ADBOBJECTS(LATABLES,'TABLE')
IF !EMPTY (LATABLES[I])
IF !USED (LATABLES[I])
USE (LATABLES[I]) IN 0 EXCL
SELECT (LATABLES[I])
WAIT WINDOW 'Reindexing:' + ALLTRIM('-');
+ UPPER(ALLTRIM(LATABLES[I]))+'.DBF' TIMEOUT 3
REINDEX
ENDIF
ENDIF
ENDFOR
MESSAGEBOX('DONE',48,"Message")
Wish you good luck
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform