Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6: delete data and pack Visual FoxPro Database

Status
Not open for further replies.

nicholasting

Programmer
Jul 28, 2006
15
0
0
MY
with the connection string below, i write the queries

Provider=VFPOLEDB.1;Data Source=C:\VFPDATA;Collating Sequence=MACHINE;Mode=ReadWrite

-------------------------------------------------------
SQL = "DELETE FROM FoxPro_Employee.dbf"
gconn.execute SQL

cmd.CommandText = "Set Exclusive On:pack FoxPro_Employee.dbf"
cmd.Execute
-------------------------------------------------------

althought the query is execute successfully, but the records do not deleted.

is that anything i did wrong?

please help!
thanks.

regards,
nicholas
 
The data has been MARKED for deletion.
The command "SET DELETED OFF" will indicate VFP not to use the deleted records on future queryes.
 
thanks "falconsight"

how about if i want delete the all VFP data and pack the database? is that any ways to do in VB6? i would like to have a clean database instead!

thanks for help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top