Difference between revisions of "ALIAS()"

From Lianjapedia
Jump to: navigation, search
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return an alias name
 
Function to return an alias name
 
  
 
==Syntax==
 
==Syntax==
 
ALIAS([<expN>])
 
ALIAS([<expN>])
 
  
 
==See Also==
 
==See Also==
[[DBF()]], [[READVAR()]], [[SELECT]], [[SELECT()]], [[USE]], [[WORKAREA()]]
+
[[AUSED()]], [[DBF()]], [[SELECT]], [[SELECT()]], [[USE]], [[WORKAREA()]]
 
+
  
 
==Description==
 
==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.
 
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|UI Presentation Rules:Using UI Element Alias Names]].  For user-defined commands, see the [[ALIAS]] command.
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
use demo
+
use customers alias cust
 
? alias()
 
? alias()
CUSTOMER
+
CUST
? alias(2)
+
ACCOUNTS
+
 
? dbf()
 
? dbf()
customer.rdb
+
customers.dbf
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Cursor Functions]]

Latest revision as of 12:54, 4 December 2017

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