4D v20.1OB Instance of |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.1
OB Instance of
|
OB Instance of ( object ; class ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
object | Object |
![]() |
Object whose class is to be tested | |||||
class | Object |
![]() |
Class to test belongship | |||||
Function result | Boolean |
![]() |
True if object belongs to the specified class or a child class, and false otherwise | |||||
The OB Instance of command returns true if object belongs to class or to one of its child classes, and false otherwise.
If class is not a valid Class object, the error -10745 is returned.
You created the Polygon class:
//Class: Polygon
Class constructor
C_LONGINT($1;$2)
This.area:=$1*$2
Then, in a method, you can write:
Product: 4D
Theme: Objects (Language)
Number:
1731
Created: 4D v18 R3
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)