ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Memory area functions
  • Performing a search in a memory area
Performing a search in a memory area
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)PHPAjax This example is used to initialize a memory area and to perform a search:
  • according to the added value
  • according to the return value
// Initialize a memory area
MemCreate("MyZone")
I is int
FOR I = 1 TO 10
MemAdd("MyZone", "Subscript" + I, I)
END
 
// Search according to the added value
Result1 is string
SoughtVal is string = "Subscript6"
Result1 = MemSeek("MyZone", SoughtVal, True)
 
// Search according to the return value
Result2 is string
SoughtVal2 is int = 4
Result2 = MemSeek("MyZone", SoughtVal2, False)
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help