Object type

Syntax

	$object.type()

Description

Returns the type of the object.

Parameters

Name Type Description Mandatory Default
object Business object The object whose type is to be determined. yes

Return value

type: Business object

The type of the object.

Examples

Simple type query

	{
   object= new(`my.module:MyClass`);
   $object.type();
}

Output: my.module:MyType

Type comparison

	{
   object= new(`my.module:MyClass`);
   $object.type() == `my.module:MySuperClass`;
}

Output: false

Unlike Instance of, comparing with == only yields true, if object is exactly of type my.module:MyType and not if it is just a subtype of it.