Progress
Language Reference


ALIAS Function

Interfaces
OS
SpeedScript
All
All
Yes

The ALIAS function returns the alias corresponding to the integer value of expression.

SYNTAX

ALIAS ( integer-expression ) 

integer-expression

If there are, for example, three currently defined aliases, the functions ALIAS(1), ALIAS(2), and ALIAS(3) return them. If the ALIAS function cannot find a defined alias, it returns the unknown value (?). For example, building on the previous example of three defined aliases, the functions ALIAS(4), ALIAS(5), and ALIAS(6) return the unknown value (?) because they cannot find a defined alias.

EXAMPLE

This procedure displays the aliases and logical names of all connected databases.

r-aliasf.p
DEF VAR i AS INT.
REPEAT i = 1 TO NUM-ALIASES:
  DISPLAY ALIAS(i) LABEL "Alias"
    LDBNAME(ALIAS(i)) LABEL "Logical Database".
END. 

SEE ALSO

CONNECT Statement, CONNECTED Function, CREATE ALIAS Statement, CREATE DATABASE Statement, DATASERVERS Function, DBCODEPAGE Function, DBCOLLATION Function, DBRESTRICTIONS Function, DBTYPE Function, DBVERSION Function, DELETE ALIAS Statement, DISCONNECT Statement, FRAME-DB Function, LDBNAME Function, NUM-ALIASES Function, NUM-DBS Function, PDBNAME Function, SDBNAME Function


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095