ALIAS()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to return an alias name

Syntax

ALIAS([<expN>])

See Also

AUSED(), DBF(), SELECT, SELECT(), USE, WORKAREA()

Description

The ALIAS() function returns, as a character string in upper case, the alias name of the table in the currently selected workarea, or a null string if no table is active. The optional parameter <expN> can be used to specify the workarea number in which the ALIAS() function should operate.

Note: for the use of UI Element Alias Names, see UI Presentation Rules:Using UI Element Alias Names. For user-defined commands, see the ALIAS command.

Example

use customers alias cust
? alias()
CUST
? dbf()
customers.dbf