AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de áreas de memoria
  • Reading a memory area
  • Error
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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

Reading a memory area

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.
To resume a standard iteration, you must use MemFirst or MemLast.

Error

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
Component: wd290std.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local