Article ID: 129400
Article Last Modified on 8/25/1999
SET DEFAULT TO c:\vfp\samples\data
USE testdata.dbc
GO TOP
DELETE && Delete one record of the .DBC.
USE && Now TESTDATA cannot be opened as a database
SET PROCEDURE TO freetabl && FREETABL is the name of the program
ON ERROR DO errhand WITH ERROR()
* The next line should cause an error because the first record
* was deleted from TESTDATA.DBC
OPEN DATA testdata
USE customer
USE products IN 0
USE orders IN 0
USE orditems IN 0
USE employee IN 0
ON ERROR && restore system error handler
PROCEDURE errhand
PARAMETER merror
WAIT WINDOW STR(merror)
IF merror=1552
FREE TABLE customer && Allows the tables to be opened
FREE TABLE orders && by freeing them from the corrupted
FREE TABLE products && DATABASE
FREE TABLE orditems
FREE TABLE employee
ENDIF
Additional query words: VFoxWin errmsg
Keywords: kberrmsg kbcode KB129400