ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Queue, stack, list and array functions / Array functions
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
Returns True if all the elements of an array are True.
Example
arrProduct is array of Product
// Return True if no product is out of stock
IF CheckAllTrue(arrProduct, AProduct => AProduct.Stock > 0) THEN
// Everything is OK
ELSE
// Alert
END
Syntax
<Result> = CheckAllTrue(<Source> [, <Operation>])
<Result>: Boolean
  • True if all the elements of the specified array are set to True,
  • False otherwise.
<Source>: Array
Name of the Array variable to be checked.
<Operation>: WLanguage procedure
WLanguage procedure to run:
  • If this parameter is not specified, <Source> must correspond to an array of booleans.
  • If this parameter is specified, the WLanguage procedure is called for each element of the array and must return a boolean.
This parameter can correspond to a local or global WLanguage procedure, an internal procedure or a lambda procedure.
Remarks
Sequence of functions
You can use array functions in a sequence.
The following functions can be used in a sequence: This sequence can be used as a source for a FOR ALL statement or it can end with one of the following functions:
Example:
gnMean = garrUser.Filter(cbFilter).Map(cbMap).Mean()
Business / UI classification: Neutral code
Component: wd290vm.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/05/2022

Send a report | Local help