InDbc Function | |
-- todo --
Returns true (.T.) if the specified database object is in the current database; otherwise returns false (.F.).
Namespace:
XSharp.VFP
Assembly:
XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax FUNCTION InDbc(
cDatabaseObjectName,
cType
) AS LOGIC CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static bool InDbc(
Usual cDatabaseObjectName = default,
Usual cType = default
)
Request Example
View SourceParameters
- cDatabaseObjectName (Optional)
- Type: Usual
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 (Optional)
- Type: Usual
Specifies the database object type of cDatabaseObjectName.
The table in the remarks section lists the values for cType and the corresponding database object type.
The Connection, Field, Index, Table, and View settings cannot be abbreviated.
Return Value
Type:
Logic
Logical
Remarks
A database must be open and current when
InDbc( ) is issued; otherwise X# generates an error message.
cType | Database object type |
---|
Connection | Named connection |
Field | Field |
Index | Index |
Table | Table |
View | SQL View |
Examples 1Close Databases
2Create Database mydbc
3Create Table mytable (field1 C(10))
4? 'MyTable in the database? '
5?? InDbc('mytable', 'Table')
6Close Databases
7Delete Database mydbc DeleteTables
See Also