Click or drag to resize

Dbc Function

X#
Returns the name and path of the current database.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 FUNCTION Dbc() AS STRING
Request Example View Source

Return Value

Type: String
Character
Remarks
DBC( ) returns the empty string if there is no current database. Use Set Database to specify the current database.
Examples
X#
1Close Databases
2Open Database (HOME(2) + 'data\testdata')  // Opens the DBC.
3Clear
4? DBC( )  // Displays the path and name of the database
See Also