Checks to see if a specified table exists in a database.


<oRef>.tableExists(<table name expC>)


The database in which to see if the table exists.

<table name expC>

The name of the table you want to look for.

Property of



tableExists( ) returns true if a table with the specified name exists in the database.

To look for a Standard table, you can always use the default database in the default session by referring to it through the databases array property of the _app object. For example,

_app.databases[ 1 ].tableExists( "Billing" )

If you do not specify an extension, dBASE Plus will look for both a DBF (dBASE) and DB (Paradox) table with that name.