PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Max (Function)
In french: Max
Returns the greatest value passed in parameter.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Greatest value?
ResMax = Max(10, 15, 20) // Returns 20
ResMax = Max("Z", "A")   // Returns "Z"
Versions 24 and later
WindowsLinuxiPhone/iPadWindows MobileUniversal Windows 10 App
// Greatest value?
myarray is array of 5 int
myarray = [1,2,3,4,5]
Trace(Max(myarray))
New in version 24
WindowsLinuxiPhone/iPadWindows MobileUniversal Windows 10 App
// Greatest value?
myarray is array of 5 int
myarray = [1,2,3,4,5]
Trace(Max(myarray))
WindowsLinuxiPhone/iPadWindows MobileUniversal Windows 10 App
// Greatest value?
myarray is array of 5 int
myarray = [1,2,3,4,5]
Trace(Max(myarray))
Syntax

Calculates the maximum of values passed in parameter Hide the details

<Result> = Max(<Value 1> [, <Value 2> [, <Value N>]])
<Result>: Character string, integer or real
The greatest value passed in 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.
Versions 24 and later
WindowsLinuxiPhone/iPadWindows MobileUniversal Windows 10 App

Calculates the maximum of array values Hide the details

<Result> = Max(<Values>)
<Result>: Character string, integer or real
The greatest value passed in parameter.
<Values>: Array of character strings, integers or reals
Name of one-dimensional Array variable containing the values to compare.
New in version 24
WindowsLinuxiPhone/iPadWindows MobileUniversal Windows 10 App

Calculates the maximum of array values Hide the details

<Result> = Max(<Values>)
<Result>: Character string, integer or real
The greatest value passed in parameter.
<Values>: Array of character strings, integers or reals
Name of one-dimensional Array variable containing the values to compare.
WindowsLinuxiPhone/iPadWindows MobileUniversal Windows 10 App

Calculates the maximum of array values Hide the details

<Result> = Max(<Values>)
<Result>: Character string, integer or real
The greatest value passed in parameter.
<Values>: Array of character strings, integers or reals
Name of one-dimensional Array variable containing the values to compare.
Component : wd240std.dll
Minimum required version
  • 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
Mar. 23 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
Jul. 02 2017