Purpose
Search in the active order for a record with the specified key value.
Class
Type
Method
Syntax
<oArrayServer>:Seek(
<uKeyValue>,
[<lSoftSeek>],
[<lLast>]
) Æ lFound
Arguments
<uKeyValue> | The key value that is to be searched. |
Data Type: | Usual |
<lSoftSeek> | A logical value that indicates how the record pointer is to be positioned if no record to the specified field values was found. TRUE positions the record pointer on the next larger record, FALSE on EoF. If the argument is not indicated, the setting from SetSoftSeek() is used. |
Data Type: | Logic |
<lLast> | A logical value that indicates whether the last occurrence of the key value is to be searched. With the value TRUE the last record to the key value is searched. As a default, the value FALSE is used. |
Data Type: | Logic |
Return Value
lFound | A logical value that indicates whether the indicated key value a record was found or not. |
TRUE | The key value was found. |
FALSE | The key value was not found. |
Data Type: | Logic |
Description
bArrayServer:Seek() search in the active order a record to the indicated key value. The search begins with the first record.
If a record is found, the record pointer is positioned on these and the value TRUE is returned. Otherwise the value FALSE is returned, and the server is positioned as follows: with a normal search the server is positioned on EoF; with a SoftSeek search the server is positioned on the first record, whose key value is larger than the indicated key value. If such record does not exist, the server is positioned at EoF.
See Also
Page url: http://www.YOURSERVER.com/index.html?barrayserver_seek.htm