Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DELETE index tags and recreate
Message
De
05/06/2008 13:36:25
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
DELETE index tags and recreate
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01321914
Message ID:
01321914
Vues:
65
Dear Experts

I have a databsae container which include table1
I want to make a routine that will first erase all tags and recreate them.
I wrote following procedure but it displays error messages as
File in use
Database is invalid, please validate
set safety off
erase 'Tables\*.idx'
erase 'Tables\*.cdx'
erase 'Tables\*.tmp'
mydbc='TABLES\data1.dbc'
if !dbused("MyDbc")
	open database fullpath(mydbc)
	set database to &mydbc
	use table1
	index on sno tag indexsno
	index on country tag indexcon
endif
messagebox("Done")
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform