IS                                                                             Operator

result = object1 IS object2

Description

IS returns a boolean specifying if one object reference is identical to another. The required components, object1 and object2 are two object references.

Example

REM IS Example

DIM Obj2

ADDOBJECT "Finance", "Obj1"

SET Obj2 = Obj1

CompareObjects Obj1, Obj2

SET Obj2 = NOTHING

CompareObjects Obj1, Obj2

SUB CompareObjects(Ob1, Ob2)

  IF Ob1 IS Ob2 THEN

    PRINT "Same"

  ELSE

    PRINT "Different"

  END IF

END SUB

Output

Same

Different

Related Items

ADDOBJECT, SET