Return a specified work area alias

     ALIAS([<nWorkArea>]) --> cAlias


     <nWorkArea> is any work area number.


     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 ("").


     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

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

 Files   Library is CLIPPER.LIB.


One response to “C5_ALIAS

  1. Pingback: C5_SELECT | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.