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.19
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
This function, however, does not call the error handler and will not, therefore, produce a runtime error message or create an error object if it fails. Thus, it may be important to check the return value to determine if the function succeeded.
the LastRddError property in the runtime state. will contain needed information regarding any error that occurs.
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