In PowerBuilder .NET, you can create global enumerations in the Enumeration painter or in a script.
Global enumerations can be used by all objects in your application or component target. Use the Enumeration painter to define global enumerations for your applications:
-
In the New dialog box, select Enumeration under the PB Object node and click Finish.
-
If you want the values for each item in the enumeration to be bit fields, select the Flags option.
-
In the Name column, enter a name for each item you want to add to the enumeration.
-
(Optional) Add values and comments for each item.
-
Select , provide a name for your global enumeration, and click OK.