Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DELETE index tags and recreate
Message
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 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01321914
Message ID:
01321916
Vues:
22
Do not delete the index files.

Open the table exclusively and then DELETE TAG ALL.

>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")
>
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform