$FUNCNAME$
  ALIAS()
$CATEGORY$
  DataBase
$SUMMARY$
   Return a specified work area alias
$LANG_RU$
       .
$SYNTAX$
     ALIAS([<nWorkArea>]) --> cAlias
$LANG_RU$
     ALIAS([<  >]) --> 
$ARGUMENTS$
     <nWorkArea> is any work area number.
$LANG_RU$
     <  > -   .
$RETURNS$

     ALIAS() returns the alias of the specified work area as a character
     string in uppercase.  If <nWorkArea> is not specified, the alias of the
     current work area is returned.  If there is no database file in USE for
     the specified work area, ALIAS() returns a null string ("").


$LANG_RU$

     ALIAS()        
     .  <  >  ,  
       .       
      , ALIAS()    ("").


$DESCRIPTION$

     ALIAS() is a database function that determines the alias of a specified
     work area.  An alias is the name assigned to a work area when a database
     file is USEd.  The actual name assigned is either the name of the
     database file, or a name explicitly assigned with the ALIAS clause of
     the USE command.

     ALIAS() is the inverse of the SELECT() function.  ALIAS() returns the
     alias name given the work area number, and SELECT() returns the work
     area number given the alias name.

       This example returns the name of the previously selected work
	area:

	USE File1 NEW ALIAS Test1
	nOldArea := SELECT()
	USE File2 NEW ALIAS Test2
	? ALIAS( nOldArea )            // Returns Test1


$LANG_RU$

     ALIAS() -     ,    
          .  -  ,
             . 
            ,  , 
        ALIAS  USE.  ALIAS() 
         SELECT(). ALIAS()   
        ,    SELECT()
           .


$SEEALSO$
  SELECT(),
$END$
