In the following example, a temporary database named mydbc
is created, and a temporary table named mytable
is added to the database. INDBC( ) is used to determine if the new table is in the database. The database and table are closed and erased.
CLOSE DATABASES
CREATE DATABASE mydbc && Creates a new database
CREATE TABLE mytable (field1 C(10)) && Automatically added to database
? 'MyTable in the database? '
?? INDBC('mytable', 'TABLE') && Returns .T.
CLOSE DATABASES
DELETE DATABASE mydbc DELETETABLES