Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DELETE index tags and recreate
Message
From
05/06/2008 13:36:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
DELETE index tags and recreate
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01321914
Message ID:
01321914
Views:
64
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")
Next
Reply
Map
View

Click here to load this message in the networking platform