EnumerationDefinition object  Environment object

Chapter 2: System Object Properties, Events, and Functions

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.

NoteWindows CE platforms This object can be used only in the development environment. It cannot be used in applications deployed to a Pocket PC or Smartphone device or emulator.

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 PocketBuilder associates with Left!

The numeric value is only important if you are constructing source code for an object. Within PocketBuilder, 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.





Copyright © 2004. Sybase Inc. All rights reserved. Environment object

View this book as PDF