Funzione CreateObject

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

Questo metodo crea istanze del tipo trasmesso come parametro.

Sintassi:

oObj = CreateObject( type )

Esempio:

Type address

    Name1 As String

    City As String

End Type

 

Sub main

    myaddress = CreateObject("address")

    MsgBox IsObject(myaddress)

End Sub