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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Executes a procedure for each element of a WLanguage array.
Versions 27 and later
Java This function is now available for Java applications.
Android This function is now available for Android applications.
Android Widget This function is now available in Android Widget mode.
New in version 27
Java This function is now available for Java applications.
Android This function is now available for Android applications.
Android Widget This function is now available in Android Widget mode.
Java This function is now available for Java applications.
Android This function is now available for Android applications.
Android Widget This function is now available in Android Widget mode.
Example
// Remplit un champ Liste avec les noms des clients
tabClient is array of Client
Apply(tabClient, UnClient=>{ListAdd(LISTE_Client, UnClient.Nom)})
Syntax
Applies(<Source array> , <Operation to perform>)
<Source array>: WLanguage array
Name of the 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 array by passing this element as a parameter.
Not all the results of the calls are stored.
Remark: You can use the following functions in the same line of code: Filter, Reduce, Min, Max, Sum, Mean, CheckAnyTrue, CheckAnyFalse, CheckAllTrue, CheckAllFalse.
Business / UI classification: Neutral code
Component: wd270vm.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment