|
|
|
|
- Reading a memory area
- Error
MemSeek (Function) In french: MemRecherche
Warning
From version 20, this feature is kept for backward compatibility. We recommend that you use Associative arrays.
Seeks an element in a memory area: - on the value added by MemAdd or on the value modified by MemModify,
- on the return value.
Remark: This search is an exact-match search. // Seeks the first value equal to "M" in the "MemZone" memory area ResSeeek = MemSeek("MemZone", "M")
Syntax
<Result> = MemSeek(<Memory area> , <Sought value> [, <Element>])
<Result>: Any type - If <Element> is set to True (by default):
- Value of the first element found,
- Empty string ("") if no element was found.
- If <Element> is set to False:
- Index of the first element found,
- -1 if no element was found.
<Memory area>: Character string Name of the memory area, defined by MemCreate. <Sought value>: Character string Value sought in the memory area. When the search is performed on the added value, this value and the value added by MemAdd must have the same type. <Element>: Optional boolean - True (default value): the search is performed on the value added by MemAdd or on the value modified by MemModify.
- False: the search is performed according to the return value.
Remarks MemSeek is used to start reading the memory area. After the call to MemSeek: - MemNext will be positioned on the next element sought.
- MemPrevious will be positioned on the previous element sought.
A WLanguage error is generated when MemSeek is executed: - if <Memory area> does not exist. To check the existence of a memory area, use MemExist.
- if <Memory area> was not sorted beforehand. To sort a memory area, use MemSort.
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|