Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DELETE index tags and recreate
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01321914
Message ID:
01321916
Views:
21
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!
____________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform