CreateObject Function

Crea un oggetto UNO. In Windows, può anche creare oggetti OLE.

Questo metodo crea istanze del tipo trasmesso come parametro.

Sintassi:

oObj = CreateObject(type)

Parametri:

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

Esempio:


    Type address
        Name1 As String
        City As String
    End Type
     
    Sub main
        myaddress = CreateObject("address")
        MsgBox IsObject(myaddress)
    End Sub