Guida di LibreOffice 25.2
Controlla se due variabili di Basic fanno riferimento alla stessa istanza di un oggetto.
result = oObj1 Is oObj2
Se oObj1 e oObj2 sono riferimenti alla stessa istanza di un oggetto, il risultato sarà True.
L'esempio seguente per prima cosa prima definisce il nuovo tipo Student. Richiamando TestObjects crea un nuovo oggetto oStudent1 di questo tipo.
L'assegnazione oStudent2 = oStudent1 in effetti copia il riferimento allo stesso oggetto. Quindi il risultato dell'applicazione dell'operatore Is è True.
    Type Student
        FirstName as String
        Program as String
    End Type
    
    Sub TestObjects
        Dim oStudent1 as new Student
        Dim oStudent2 as Variant
        oStudent2 = oStudent1
        MsgBox Student1 Is Student2 ' True
    End Sub
  L'esempio seguente restituisce False in quanto oStudent1 e oStudent2 sono riferimenti a due istanze diverse dell'oggetto, ognuna delle quali creata usando l'operatore New.
    Sub TestObjects_v2
        Dim oStudent1 as new Student
        Dim oStudent2 as new Student
        MsgBox oStudent1 Is oStudent2 ' False
    End Sub