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

Syntax

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

<oRef>

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

Database

Description

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.