Click or drag to resize

VoDbAliasSym Function

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

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

Parameters

wWorkArea
Type: DWord
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#
1USE file1 NEW ALIAS test1
2nAlias := VODBGetSelect()
3sAlias := VODBAliasSym(nAlias)
4? sAlias        // Returns: test1
See Also