Click or drag to resize

VoDbAliasSym Function

Return the alias of a specified work area as a symbol.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.08
Syntax
 FUNCTION VoDbAliasSym(
	wWorkArea AS DWORD
) AS SYMBOL
View Source

Parameters

wWorkArea
Type: UInt32
Any work area number.

Return Value

Type: Symbol
The alias of the specified work area as a symbol.  If there is no database file in use for the specified work area, VODBAlias() returns a  NULL_SYMBOL.
Remarks
Examples
This example opens a file, issues the VODBGetSelect() function to determine the current work area number, and then gets the symbol associated with the work area:
X#
USE file1 NEW ALIAS test1
nAlias := VODBGetSelect()
sAlias := VODBAliasSym(nAlias)
? sAlias                // Returns: test1
See Also