PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Browsing 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.
Versions 15 and later
Android This function is now available for Android applications.
New in version 15
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android widget mode.
New in version 18
Android Widget This function is now available in Android widget mode.
Android Widget This function is now available in Android widget mode.
Versions 22 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 26 and later
Apple Watch This function is now available for Apple Watch applications.
New in version 26
Apple Watch This function is now available for Apple Watch applications.
Apple Watch This function is now available for Apple Watch applications.
// Recherche la première valeur égale à "M" dans la zone mémoire "ZoneMem"
ResRecherche = MemSeek("ZoneMem", "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

Browsing a memory area

The MemSeek function is used to start a run on 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 browse, you must use MemFirst or MemLast.

Error

A WLanguage error is generated when the MemSeek function 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: wd270std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment