Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reindex all tables in the database
Message
From
19/09/2004 09:40:35
 
 
To
18/09/2004 12:35:17
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00943748
Message ID:
00943829
Views:
23
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
Previous
Reply
Map
View

Click here to load this message in the networking platform