Description
Returns a string form of the class of the PBDOM_OBJECT.
Syntax
pbdom_object_name.GetObjectClassString()
Return value
String.
GetObjectClassString returns a string that indicates the class of the current PBDOM_OBJECT. If pbdom_object_name is a PBDOM_ATTRIBUTE, the returned string is "pbdom_attribute".
Examples
The GetObjectClass method returns a string specific to the class of the object from which the method is invoked.
This example illustrates polymorphism: pbdom_obj is declared as PBDOM_OBJECT but instantiated as PBDOM_ATTRIBUTE. A message box returns the result of the GetObjectClassString method invoked for PBDOM_ATTRIBUTE. Here the result is pbdom_attribute, indicating that pbdom_obj is a PBDOM_ATTRIBUTE object.
PBDOM_OBJECT pbdom_obj pbdom_obj = Create PBDOM_ATTRIBUTE MessageBox ("Class", pbdom_obj.GetObjectClassString())
Usage
This method can be used for diagnostic purposes to dynamically determine the actual type of a PBDOM_OBJECT at runtime.
See also