EnumerationItemDefinition object

A class that provides information about the value names and the associated numeric values for an enumerated datatype. It is used in the EnumerationDefinition class. It has no events.

Properties

Enumeration ItemDefinition property

Datatype

Description

ClassDefinition

PowerObject

An object of type PowerObject containing information about the class definition of the object or control.

Name

String

The name of an enumerated value. For example, Left! is a named value of the enumerated datatype Alignment.

Value

Long

The numeric value associated with the name. For example, 0 is the value PowerBuilder associates with Left!

The numeric value is important only if you are constructing source code for an object. Within PowerBuilder, you use the named value so that the datatype is correct.

Functions

Enumeration ItemDefinition function

Datatype returned

Description

ClassName

String

Returns the name assigned to the object.

GetContextService

Integer

Creates a reference to a context-specific instance of the specified service.

GetParent

PowerObject

Returns a reference to the name of the parent object.

TypeOf

Object

Returns the type of the object.