Class_isWrapper

Homepage

Tests whether the specified Class object is a wrapper object.

isWrapper := Class_isWrapper(ClassObject)

Parameters

ClassObject The Class object to use for the current operation.

Return Value

The object's class name if ClassObject is a wrapper object.
Otherwise, false (0) is returned.


The function's return can be used as a quasi-boolean value; the statement if Class_isWrapper(...) would be true if the object is a wrapper object, and false otherwise.

Remarks

If ClassObject is NULL (0 or blank), the empty string is returned, to indicate an error.

Related

Class_getClass, Class_getClassName

Class_unwrapThis, Class_isCloneable

Class

Examples

;Creates a new String initialized to "Hello World!"
myString := String_new("Hello World!")

;Since Strings are wrapper objects, the object's class name ("String") is returned.
MsgBox, % "Test if myString is a wrapper object: " Class_isWrapper(myString)

;Creates a new Vector with the default parameters.
myVector := Vector_new()

;Since Vectors are not wrapper objects, false (0) is returned.
MsgBox, % "Test if myVector is a wrapper object: " Class_isWrapper(myVector)

Homepage