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.
  • Operating mode
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Executes a procedure on each element of a source array and returns the results in a WLanguage array.
Example
// -> apply lowercase to all the strings in the array
arr1 is array of strings = ["A", "b", "C"]
arr1 = arr1.Map(X => Lower(X))
// arr1 = ["a", "b", "c"]
Syntax
<Result> = <Source array>.Map(<Operation to perform>)
<Result>: WLanguage array
Array that contains the result of the procedure executed for each element of the <Source array>.
<Source array>: WLanguage array
Name of Array variable to use. This array must be a one-dimensional array.
<Operation to perform>: WLanguage procedure
Name of the WLanguage procedure to be executed for each element of the <Source array>. This procedure can be:
  • a global or local procedure,
  • an internal procedure.
It is also possible to directly use a lambda procedure.
Remarks

Operating mode

The <Operation to perform> procedure is called for each element of the source array by passing this element as a parameter.
The results of all calls are stored in the <Result> array.
Business / UI classification: Neutral code
Component: wd260vm.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment