CreateObject Function

Membuat sebuah objek UNO. Di Windows, juga dapat membuat objek OLE.

This method creates instances of the type that is passed as parameter.

Sintaksis:

oObj = CreateObject( jenis )

Contoh:

Type address

    Name1 As String

    City As String

End Type

 

Sub main

    myaddress = CreateObject("address")

    MsgBox IsObject(myaddress)

End Sub