CreateObject Function

UNO objektu bat sortzen du. Windows sisteman OLE objektuak ere sor ditzake.

Metodo honek parametro gisa pasatako motaren instantziak sortzen ditu.

Sintaxia:

oObj = CreateObject(type)

Parametroak:

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

Adibidea:


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