OutputVar := MfObject.IsMfObject(obj)
Gets if obj is a MfObject or derived class. All objects and/or classes that do not derive from MfObject will return false.
obj
An Object to Check
Returns true if object is derived from MfObject. Otherwise false.
Static Method.
obj can be an instance or not.
IsNotObjectInstance(), IsObjectInstance(), IsInstance(), Is()
myInt := new MfInteger(25)
if (MfObject.IsMfObject(myInt)) {
MsgBox, 64, Valid, 'myInt' does derive from MfObject
}
else {
MsgBox, 64, InValid, 'myInt' does not derive from MfObject
}
if (MfObject.IsMfObject(MfInteger)) {
MsgBox, 64, Valid, 'MfInteger' does derive from MfObject
}
else {
MsgBox, 64, InValid, 'MfInteger' does not derive from MfObject
}
; both examples above will be true
; the example below will be false
mySpecialObject := Object()
if (MfObject.IsMfObject(mySpecialObject)) {
MsgBox, 64, Valid, 'mySpecialObject' does derive from MfObject
}
else {
MsgBox, 64, InValid, 'mySpecialObject' does not derive from MfObject
}
ExitApp