Click or drag to resize

DbAlias Function

X#
Returns database alias of currently set database.

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

Return Value

Type: String
Character.
Remarks
DBAlias( ) returns the empty string if there is no current database.
Examples
X#
1Open Database HOME(2)+"northwind\northwind" SHARED
2Open Database HOME(2)+"tastrade\data\tastrade" SHARED
3Set Database TO NORTHWIND
4? DBAlias()
5Set Database TO TASTRADE
6? DBAlias()
7? JUSTSTEM(DBC())
See Also