Open Database, Close Databases
These commands open and close databases, respectively. Opening a database does not open any of the tables in it, but closing a database does close all of its tables.
Usage |
OPEN DATABASE [ Name | ? ] [ EXCLUSIVE | SHARED ] [ NOUPDATE ] [ VALIDATE ] |
Prior to VFP 7, the prevention of changes when the database is open NOUPDATE wasn't complete. If you attempted to add an index to a table, even though the INDEX command gave you an error message, enough information was stored that the database was considered invalid. This bug is fixed in VFP 7. |
Also, if you open a database EXCLUSIVE or NOUPDATE, then reopen it without closing it first, it doesn't matter whether you specify the same keyword(s) again. The database retains the same characteristics. To change them, you have to close the database, and then open it with different keywords. |
Example |
OPEN DATABASE TasTrade |
Usage |
CLOSE DATABASES [ ALL ] |
See Also |
Activate Database Event, Close All, CloseData, Create Database, DBC(), Deactivate Database Event, Delete Database, Modify Database, OpenData, Set Database, Use, Validate Database |