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 the greatest value.
Example
// Greatest value?
ResMax = Max(10, 15, 20) // Returns 20
ResMax = Max("Z", "A")   // Returns "Z"
WindowsLinuxUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystJava
// Greatest value?
myarray is array of 5 int
myarray = [1,2,3,4,5]
Trace(Max(myarray))
Syntax

Calculates the maximum of values passed as parameter Hide the details

<Result> = Max(<Value 1> [, <Value 2> [, <Value N>]])
<Result>: Character string, integer or real
The greatest value passed as parameter.
<Value 1>: Character string, integer or real
Value to compare.
<Value 2>: Optional character string, integer or real
Value to compare.
<Value N>: Optional character string, integer or real
Value to compare.
WindowsLinuxUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystJava

Calculates the highest value in the array Hide the details

<Result> = Max(<WLanguage array>)
<Result>: Character string, integer or real
The greatest value passed as parameter.
<WLanguage array>: Array of character strings, integers or reals
Name of one-dimensional Array variable containing the values to compare.
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: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Video Max
https://youtu.be/jf84XeTk7Qw

https://windevdesenvolvimento.blogspot.com/2019/03/dicas-2052-windev-array-14-max.html

// BTN_ARRAY_MAIOR_VALOR_MAX

EDT_array = "Vamor maximo =>" +
EDT_array = Max(10, 15, 20)
amarildo
23 Mar. 2019
retornar o Maior Valor
Nessa aula de hoje

Vou mostrar como retornar o Maior Valor

EDT_RESULTADO= Max(EDT_a,EDT_b)

// ELE VAI RETORNAR O MAIOR VALOR ENTRE OS DOIS
// HE WILL RETURN THE GREATEST VALUE BETWEEN THE TWO
// Él va a devolver el mayor valor en los dos.

// blog com vídeo e exemplo

http://windevdesenvolvimento.blogspot.com.br/2017/07/aula-1194-comandos-15-maior-valor-max.html

https://www.youtube.com/watch?v=nRxHy-FRkW0

De matos
02 Jul. 2017

Last update: 07/05/2022

Send a report | Local help