Supported typesSum of durations WINDEV WEBDEV WINDEV Mobile Others Sum (Function) In french: Somme Calculates the sum of the array elements. Versions 18 and later This function is now available in Windows Store apps mode. This function is now available for iPhone/iPad applications.New in version 18 This function is now available in Windows Store apps mode. This function is now available for iPhone/iPad applications. This function is now available in Windows Store apps mode. This function is now available for iPhone/iPad applications.Versions 19 and later This function is now available for the Windows Mobile applications.New in version 19 This function is now available for the Windows Mobile applications. This function is now available for the Windows Mobile applications.Versions 21 and later This function is now available in Apple Watch mode. This function is now available in Universal Windows 10 App mode.New in version 21 This function is now available in Apple Watch mode. This function is now available in Universal Windows 10 App mode. This function is now available in Apple Watch mode. This function is now available in Universal Windows 10 App mode.Versions 22 and later This function is now available in Android Widget mode. This function is now available for Android applications. This function is now available for the Java applications.New in version 22 This function is now available in Android Widget mode. This function is now available for Android applications. This function is now available for the Java applications. This function is now available in Android Widget mode. This function is now available for Android applications. This function is now available for the Java applications.Example // Sum of elements found in an array of integersMyArray is array of int = [1,2,3]MySum is numericMySum = Sum(MyArray) // MySum = 6 Syntax Calculating the sum of the elements found in a a one-dimensional array (numeric types) = Sum() : NumericSum of the numeric elements found in the array. : Array variableName of the one-dimensional array of numeric types containing the elements whose sum must be calculated. Calculating the sum of the elements found in a one-dimensional array (structured types) = Sum( , ) : NumericSum of the values of members. : Array variableName of the one-dimensional array of structured types. The following structured types are allowed: class, dynamic class, structure, dynamic structure.Note: In an array of dynamic classes or in an array of dynamic structures, the element is ignored if it is not allocated. : Character string (with or without quotes)Name of the member containing the values that must be used to calculate the sum. Calculating the sum of the elements found in a column of a two-dimensional array = Sum( , ) : NumericSum of the column values. : Array variableName of the two-dimensional numeric array. : IntegerSubscript of the array column containing the values that must be used to calculate the sum. Remarks Supported typesThe following types are supported for the arrays of numeric values and for the members of arrays of structured types: all integer types (on 1, 2, 4 or 8 bytes, signed or unsigned + system integer).the real type (on 4 or 8 bytes), the currency type and the numeric type.the Duration type.Sum of durationsIf Sum is used to calculate a sum of durations, all the parameters must have the Duration type. Business / UI classification : Neutral codeComponent : wd250mat.dll Minimum version required Version 17 This page is also available for…
 Exemplo sum