Alias Function | |
Return the alias of a specified work area as a string.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION Alias(
uWorkArea
) AS STRING CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static string Alias(
Usual uWorkArea = default
)
Request Example
View SourceParameters
- uWorkArea (Optional)
- Type: Usual
Any work area name or number.
If not specified, the alias of the current work area is returned.
Return Value
Type:
String
If there is no database file in use, Alias() returns a NULL_STRING.
Remarks
Alias() is the inverse of Select(). Alias() returns the alias name given the work area number, while Select() returns the work area number given the alias name.
Examples
This example returns the name of the previously selected work area:
1USE file1 NEW ALIAS Test1
2nOldArea := Select()
3USE file2 NEW ALIAS Test2
4QOut(Alias(nOldArea))
See Also