PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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 lowest value.
Versions 15 and later
Android This function is now available for Android applications.
New in version 15
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android widget mode.
New in version 18
Android Widget This function is now available in Android widget mode.
Android Widget This function is now available in Android widget 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.
Versions 26 and later
Apple Watch This function is now available for Apple Watch applications.
New in version 26
Apple Watch This function is now available for Apple Watch applications.
Apple Watch This function is now available for Apple Watch applications.
Versions 27 and later
Java This function is now available for arrays in Java applications.
Android This function is now available for arrays in Android applications.
Android Widget This function is now available for arrays in Android widget mode.
New in version 27
Java This function is now available for arrays in Java applications.
Android This function is now available for arrays in Android applications.
Android Widget This function is now available for arrays in Android widget mode.
Java This function is now available for arrays in Java applications.
Android This function is now available for arrays in Android applications.
Android Widget This function is now available for arrays in Android widget mode.
Example
// Smallest value?
ResMin = Min(10, 15, 20)  // Returns 10
ResMin = Min("Z", "A")    // Returns "A"
Versions 24 and later
WindowsLinuxUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystJava
// Smallest value?
myarray is array of 5 int
myarray = [1,2,3,4,5]
Trace(Min(myarray))
New in version 24
WindowsLinuxUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystJava
// Smallest value?
myarray is array of 5 int
myarray = [1,2,3,4,5]
Trace(Min(myarray))
WindowsLinuxUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystJava
// Smallest value?
myarray is array of 5 int
myarray = [1,2,3,4,5]
Trace(Min(myarray))
Syntax

Calculates the minimum of values passed as parameter Hide the details

<Result> = Min(<Value 1> [, <Value 2> [, <Value N>]])
<Result>: Character string, integer or real
The smallest 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.
Versions 24 and later
WindowsLinuxUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystJava

Calculates the lowest value in the array Hide the details

<Result> = Min(<WLanguage array>)
<Result>: Character string, integer or real
The smallest value passed as parameter.
<WLanguage array>: Array of character strings, integers or reals
Name of one-dimensional Array variable containing the values to compare.
New in version 24
WindowsLinuxUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystJava

Calculates the lowest value in the array Hide the details

<Result> = Min(<WLanguage array>)
<Result>: Character string, integer or real
The smallest value passed as parameter.
<WLanguage array>: Array of character strings, integers or reals
Name of one-dimensional Array variable containing the values to compare.
WindowsLinuxUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystJava

Calculates the lowest value in the array Hide the details

<Result> = Min(<WLanguage array>)
<Result>: Character string, integer or real
The smallest value passed as parameter.
<WLanguage array>: Array of character strings, integers or reals
Name of one-dimensional Array variable containing the values to compare.
Business / UI classification: Neutral code
Component: wd270std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Video Min
https://youtu.be/dKGij6_4_0Y

https://windevdesenvolvimento.blogspot.com/2019/03/dicas-2053-windev-array-15-min.html

// BTN_ARRAY_MENOR_VALOR_MIN

EDT_array="VALOR MINIMO =>"

EDT_array=Min(10,20,60,10,15)
amarildo
23 Mar. 2019
Vou mostrar como retornar o Menor Valor
//Vou mostrar como retornar o Menor Valor

EDT_RESULTADO= Min(EDT_a,EDT_b)

// ELE VAI RETORNAR O MENOR VALOR ENTRE OS DOIS
// IT WILL RETURN THE LOWER VALUE BETWEEN THE TWO
// ÉL VA A RETORNAR EL MENOR VALOR ENTRE LOS DOS

// BLOG COM VIDEO E EXEMPLO


https://doc.pcsoft.fr/fr-FR/?3050004&name=min_fonction

http://windevdesenvolvimento.blogspot.com.br/2017/07/aula-1195-comandos-16-menor-valor-min.html

https://www.youtube.com/watch?v=3VP84QNJKKI

De matos
02 Jul. 2017