Use PowerScript to create custom enumerations for PowerBuilder .NET targets.
global type MyEnum enumerated item1, item2 = 3 end type
[[namespacename.]enumerationType.]enumerationEntryName!
Enum me me = MyEnum.item2!
This syntax helps make the code readable and avoids naming conflicts.
If you do not provide an enumeration type, the enumeration is assumed to be a system-defined type and PowerBuilder .NET tries to find it in PowerBuilder system-defined enumerations. If the enumeration type exists, PowerBuilder .NET tries to find the enumeration type first and then find the entry for that enumeration type.