Inheritance from .NET System.Object

In PowerBuilder 12.5, the .NET System.Object type is the ancestor type of the PowerObject datatype.

Because the PowerObject datatype is the base class of all PowerScript object types, you can invoke the public members of the .NET System.Object type from any PowerBuilder object.

This example calls the ToString method that a PowerObject inherits from System.Object:
     PowerObject po
     String str
     Po = create PowerObject
     Str = Po.ToString()

You can assign any PowerBuilder type to the System.Object type.

This example assigns an integer type to a System.Object instance:
     System.Object o
	    Int i = 1
	    o = i