Syntax for Returning Namespace Names

PowerBuilder .NET provides an overload of the PowerScript ClassName system function that allows you to return the namespace of an object along with its class name.

The syntax for the ClassName function that can return a namespace name is:
        string ClassName{any variable, boolean b_namespace )
Argument Description
variable The name of the object for which to return a class name.
b_namespace Boolean argument indicating whether or not to include the namespace in the return value. Values are:
  • True – returns the namespace with the object name.
  • False – does not return the namespace with the object name.
The format of the returned value when b_namespace is true is:
       nameSpace.className