Returns the alias name of the current or a specified work area.




The work area you want to check. (If <alias> is a work area alias name, there is no reason to use this function because that alias name is what the function will return.)


ALIAS( ) returns the alias name of any work area within the current workset, in all uppercase. If no table is opened in the specified work area, ALIAS( ) returns an empty string ("").

Routines that do work in other work areas usually save the current work area before switching, and then switch back when done. Use ALIAS( ) to get the name of the current work area, then switch back using the SELECT command.


There is no concept of the "current" Query object. You may refer to any Query object at any time through its object reference.