PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
Returns an enumeration value known by its associated value.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 23 and later
Java This function is now available for Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
New in version 23
Java This function is now available for Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Example
// Description de l'énumération
UneEnumération is Énumération
Valeur1 = "A"
Valeur2 = "B"
END
 
MonEnumération is UneEnumération
 
// MonEnumération est affecté avec la valeur "Valeur1"
MonEnumération = EnumerationFromValue(UneEnumération, "A")
// La trace donne Valeur1 -> "A"
Trace(MonEnumération..Name + " -> " + MonEnumération..Value)
 
// MonEnumération est affecté avec la valeur "Valeur2"
MonEnumération = EnumerationFromValue(UneEnumération, "B")
// la trace donne Valeur2 -> "B"
Trace(MonEnumération..Name + " -> " + MonEnumération..Value)
Syntax
<Result> = EnumerationFromValue(<Enumeration> , <Value> [, <Default>])
<Result>: Enumeration variable
Enumeration variable.
<Enumeration>: Enumeration variable
Name of Enumeration variable to use.
<Value>: Variant
Simple value (string, integer, real, boolean, ...) of the enumeration.
<Default>: Optional variable
Default value that must be given to the enumeration if the <Value> is not found.
If this parameter is not specified and the <Value> is not found, a fatal error (exception) is generated.
Component: wd260vm.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment