ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Combination and enumeration functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns an enumeration value known by its name.
Example
// Describe the enumeration
AnEnumeration is Enumeration
Value1
Value2
END
 
o is AnEnumeration
 
// "Value1" is assigned to o
o = EnumerationFromName(AnEnumeration, "Value1")
 
// "Value2" is assigned to o
o = EnumerationFromName(AnEnumeration, "Value2")
Syntax
<Result> = EnumerationFromName(<Enumeration> , <Value> [, <Default>])
<Result>: Enumeration variable
Enumeration variable.
<Enumeration>: Enumeration variable
Name of the Enumeration variable to be used.
<Value>: Character string
Value 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: wd300vm.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help