Usage |
DROP TABLE TableName | FileName | ? [ RECYCLE ] DROP VIEW ViewName |
In VFP 5, if the table you specify is the parent of a persistent relation, VFP's reaction to DROP TABLE depends on the case you use in the command, of all things. If you specify the table in all lowercase, instead of removing it from the database and deleting it, VFP gives you an error telling you it's "referenced" in a relation. Yeah, so what? But wait, it gets better. If you include even one uppercase letter in the name, the DROP TABLE command works. The table and relation are removed from the database, and the table is deleted. In VFP 6 and later, the situation is much simpler. It just doesn't let you drop a table that's referenced in a relation. We're not sure if that's a good thing or a bad thing, but we know for sure that it's not a documented thing. |
Help says DROP VIEW is just another name for DELETE VIEW. So why doesn't DROP VIEW accept ? to let us choose a view to delete? DELETE VIEW does. |
Example |
* Careful - these commands will remove data from the sample * applications - try this on a copy! OPEN DATABASE TasTrade DROP TABLE Setup SET DATA TO DROP TABLE \MyData\MyTable SET DATA TO TasTrade DROP VIEW top25cust |
See Also |
Add Table, AfterDropTable, AfterDropView, BeforeDropTable, BeforeDropView, Create SQL View, Delete File, Delete View, Erase, Remove Table |