Difference between revisions of "TARGET()"

From Lianjapedia
Jump to: navigation, search
m (Text replace - "Recital" to "Lianja")
 
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return target workarea of a relation
 
Function to return target workarea of a relation
 
  
 
==Syntax==
 
==Syntax==
 
TARGET(<expN>)
 
TARGET(<expN>)
 
  
 
==See Also==
 
==See Also==
 
[[DBRSELECT()]], [[SET RELATION]]
 
[[DBRSELECT()]], [[SET RELATION]]
 
  
 
==Description==
 
==Description==
 
The TARGET() function is synonymous with the DBRSELECT() function.  The TARGET() function returns the target workarea of a specified relation defined in the current workarea.  The <expN> is the position of the corresponding relation in the list of previously defined relations.  If there are no relations defined for the <expN> on the currently selected table, the TARGET() function will return 0.
 
The TARGET() function is synonymous with the DBRSELECT() function.  The TARGET() function returns the target workarea of a specified relation defined in the current workarea.  The <expN> is the position of the corresponding relation in the list of previously defined relations.  If there are no relations defined for the <expN> on the currently selected table, the TARGET() function will return 0.
 
  
 
==Example==
 
==Example==
Line 23: Line 19:
 
         2
 
         2
 
</code>
 
</code>
 
  
 
==Products==
 
==Products==

Latest revision as of 11:19, 12 December 2012

Purpose

Function to return target workarea of a relation

Syntax

TARGET(<expN>)

See Also

DBRSELECT(), SET RELATION

Description

The TARGET() function is synonymous with the DBRSELECT() function. The TARGET() function returns the target workarea of a specified relation defined in the current workarea. The <expN> is the position of the corresponding relation in the list of previously defined relations. If there are no relations defined for the <expN> on the currently selected table, the TARGET() function will return 0.

Example

use shows in 2 index people
use patrons in 1
set relation to patron_code into shows
? target(1)
         2

Products

Lianja, Lianja Server