Skip to main content
Skip table of contents

typeOf() Operation

Syntax

set type = anyObject.typeOf();

Semantics

Returns the type of any object at run-time. To get the type the object has had at compile-time use the staticTypeOf() Operation. typeOf() and staticTypeOf() may return the same type, though.

Substitutables

type

Can be any variable or object attribute having the type String.

Find a list of all build-in type strings on Type Strings. Other, e.g. model specific, types can be referenced via their path in the Service Panel, see example below.

anyObject

Can be any object.

Examples

NONE
set aString = anObject.attribute if anObject.attribute.typeOf() = "urn:Base_Types.String";

aString gets the value of anObject.attribute assigned, if the type matches.

Other, e.g. model specific, types can be referenced via their path in the Service Panel, e.g. a class Customer that has been defined in a package Service/Classes/Customer would have the following type string: "urn:Service.Classes.Customer".

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.