AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de áreas de memoria
  • Reading a memory area
  • Error
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Advertencia
A partir de la versión 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")
Sintaxis
<Result> = MemSeek(<Memory area> , <Search 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.
<Search 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): the search is performed on the value added by function MemAdd or on the value modified by function MemModify.
  • False The search is performed on the return value.
Observaciones

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.
Clasificación Lógica de negocio / UI: Código neutro
Componente: wd300std.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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