Creating a Local User-Defined Enumeration

In PowerBuilder .NET, you can create local enumerations for an object in an Enumeration painter that you open from the object painter.

To define a local enumeration using the PowerBuilder .NET user interface, first open an object painter that has a local Enumeration painter attached. You can define local enumerations for these kinds of objects: custom and standard class objects, custom, standard and external visual objects, windows, and menus.

In the Enumeration painter, you can specify entry name, value, and comments for each item that you enter for an enumeration type.

  1. In the Solution Explorer, right-click the object for which you want to add a local enumeration and select Open.
  2. From the drop-down list at the upper left of the object painter, select Enumerations.
  3. If it is not already selected, select New Enumeration from the second drop-down list.
  4. In the Enumeration text box, enter a name for the new enumeration.
  5. In the Name column, enter a name for each item you want to add to the enumeration.
  6. (Optional) Add values and comments for each item in the painter.
  7. Save the object with its new enumeration.
Related reference
Syntax for User-Defined Enumerations