Kbase P161954: Can I get the integer value of a .NET enumeration?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/16/2010 |
|
Status: Unverified
GOAL:
Can I get the integer value of a .NET enumeration?
GOAL:
How can I get the numeric value of a .NET enumeration?
FACT(s) (Environment):
OpenEdge 10.2x
Windows
FIX:
If you need to get the actual integer value of a .NET enumeration (assuming that the enumeration is based upon a simple integer, not all of them are) you can use the following code:
MESSAGE Progress.Util.CastUtil:ToInt32(SomeDotNetEnumeration:SomeEnumerationName) VIEW-AS ALERT-BOX.