Click or drag to resize

Alias0 Function

X#
Return the alias of the current work area as a string.

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

Return Value

Type: String
If there is no database file in use, Alias0() returns a NULL_STRING.
Remarks
Alias0() is the same as Alias() except that Alias0() accepts no arguments. (This is indicated by the "0" in the function name.)
Therefore, when no argument is required, Alias0() should be used instead of Alias() to increase program efficiency.
This example returns the name of the current work area:
X#
1USE file1 NEW ALIAS Test1
2QOut(Alias0())        // Returns: Test1
Examples