Contents
Index 🔎︎

# EqualUnoObjects Function

如果指定的兩個 Basic Uno 物件表示相同的 Uno 物件實例，則傳回 True (真)。

## 語法：

    EqualUnoObjects( oObj1, oObj2 )

## 傳回值類型：

布林型

## 示例：

        ' Copy of objects -> same instance
        oIntrospection = CreateUnoService( "com.sun.star.beans.Introspection" )
        oIntro2 = oIntrospection
        print EqualUnoObjects( oIntrospection, oIntro2 )
        ' Copy of structs as value -> new instance
        Dim Struct1 as new com.sun.star.beans.Property
        Struct2 = Struct1
        print EqualUnoObjects( Struct1, Struct2 )