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

EnumerationItemDefinition 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

EnumerationItemDefinition function

Datatype returned

Description

ClassName in PowerScript Reference

String

Returns the name assigned to the object.

GetContextService in PowerScript Reference

Integer

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

GetParent in PowerScript Reference

PowerObject

Returns a reference to the name of the parent object.

TypeOf in PowerScript Reference

Object

Returns the type of the object.