PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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.
Example
// Describe the enumeration
AnEnumeration is Enumeration
Value1 = "A"
Value2 = "B"
END

o is AnEnumeration

// "Value1" is assigned to o
o = EnumerationFromValue(AnEnumeration, "A")

// "Value2" is assigned to o
o = EnumerationFromValue(AnEnumeration, "B")
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.
A WLanguage error occurs if this parameter is not specified and if the <Value> is not found.
Component : wd240vm.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment