TypeDefinition is used in the VariableDefinition class.
Information about the type of a variable. The variable can be a single value, an object, or an array. TypeDefinition is an abstract class that is the ancestor of ClassDefinition, SimpleTypeDefinition, and EnumerationDefinition. It has no events.
TypeDefinition property |
Datatype |
Description |
---|---|---|
Category |
TypeCategory |
Specifies if the type is simple, enumerated, or a class or structure. Values are:
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
DataTypeOf |
String |
The system class name or simple datatype of the variable. DataTypeOf is a string representation of a value of the Object enumerated datatype. Values are lowercase with no exclamation point. Sample values include:
For objects you have defined, the datatype is the system class from which your object is inherited. |
IsStructure |
Boolean |
Indicates whether the type is a structure. |
IsSystemType |
Boolean |
Indicates whether the type is defined by PowerBuilder as opposed to a type defined in a PBL by a user. |
IsVariableLength |
Boolean |
Specifies whether the datatype has a fixed size. Values are:
|
IsVisualType |
Boolean |
Indicates whether the type is a visual (displayable) or nonvisual type. Values are:
|
LibraryName |
String |
The fully qualified name of the library the type was loaded from. Note that the library might no longer contain the type. If a program manipulates the contents of libraries, its class could have been moved or deleted after it was loaded. |
Name |
String |
The name of the type. For a nested type, the name will be returned in the form of libraryEntryName`typeName |
TypeDefinition function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the object. |
|
Integer |
Creates a reference to a context-specific instance of the specified service. |
|
PowerObject |
Returns a reference to the name of the parent object. |
|
Object |
Returns the type of the object. |