Returns true (.T.) if the specified database object is in the current database; otherwise returns false (.F.).
Syntax
INDBC(cDatabaseObjectName, cType)
Returns
Logical
Arguments
cDatabaseObjectName
Specifies the name of a named connection, field, index, table, or SQL view for which INDBC( ) returns a logical value indicating whether or not the object is in the current database.
cType
Specifies the database object type of cDatabaseObjectName. The following table lists the values for cType and the corresponding database object type.
cType | Database object type |
CONNECTION | Named connection |
FIELD | Field |
INDEX | Index |
TABLE | Table |
VIEW | SQL View |
The CONNECTION, FIELD, INDEX, TABLE, and VIEW settings cannot be abbreviated.
Remarks
A database must be open and current when INDBC( ) is issued; otherwise Visual FoxPro generates an error message.