Creating a Global User-Defined Enumeration

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:

  1. In the New dialog box, select Enumeration under the PB Object node and click Finish.
  2. If you want the values for each item in the enumeration to be bit fields, select the Flags option.
  3. In the Name column, enter a name for each item you want to add to the enumeration.
  4. (Optional) Add values and comments for each item.
  5. Select File > Save, provide a name for your global enumeration, and click OK.