Difference between revisions of "SEEK()"

From Lianjapedia
Jump to: navigation, search
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to verify presence of an index key
 
Function to verify presence of an index key
 
  
 
==Syntax==
 
==Syntax==
 
SEEK(<key expression> [,<workarea | alias> [,<exp>]])
 
SEEK(<key expression> [,<workarea | alias> [,<exp>]])
 
  
 
==See Also==
 
==See Also==
[[FIND]], [[LOCATE]], [[LOOKUP()]], [[RLOOKUP()]], [[SEEK]]
+
[[LOCATE]], [[LOOKUP()]], [[RLOOKUP()]], [[SEEK]]
 
+
  
 
==Description==
 
==Description==
 
The SEEK() function returns .T. if the specified index <key expression> has been found in the master index of the current workarea or the optionally specified <workarea | alias>.  If the optional order parameter <exp> is specified, that index will be searched instead of the master index.
 
The SEEK() function returns .T. if the specified index <key expression> has been found in the master index of the current workarea or the optionally specified <workarea | alias>.  If the optional order parameter <exp> is specified, that index will be searched instead of the master index.
 
  
 
==Example==
 
==Example==
Line 26: Line 22:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Indexing]]
+
[[Category:Cursor Functions]]
[[Category:Indexing Functions]]
+
[[Category:Search Functions]]

Latest revision as of 11:07, 4 February 2013

Purpose

Function to verify presence of an index key

Syntax

SEEK(<key expression> [,<workarea | alias> [,<exp>]])

See Also

LOCATE, LOOKUP(), RLOOKUP(), SEEK

Description

The SEEK() function returns .T. if the specified index <key expression> has been found in the master index of the current workarea or the optionally specified <workarea | alias>. If the optional order parameter <exp> is specified, that index will be searched instead of the master index.

Example

use accounts in 1
use supp in 2 index name
select 1
display name
BCD CORPORATION
? iif(seek(name,supp),supp_name,"***name not on file***")
BCD CORPORATION