Contents

# CreateObject Function

建立 UNO 物件。Windows 上亦可建立 OLE 物件。

這個方法會建立傳送為參數的實例類型。

### Syntax:

oObj = CreateObject(type)

### Parameters:

type: the type of the object to be created, as a string.

### Example:

        Type address
            Name1 As String
            City As String
        End Type

        Sub main
            myaddress = CreateObject("address")
            MsgBox IsObject(myaddress)
        End Sub

相關主題

New Operator