CreateObject Function

CreateObject luo UNO-olion. Windowsissa voidaan luoda myös OLE-objekti.

TÀmÀ metodi luo ilmentymÀn, jonka tyyppi vÀlitetÀÀn parametrissÀ.

Syntaksi:

oObj = CreateObject(type)

Parametrit:

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

Esimerkki:


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

Please support us!