CreateObject Function

Sukuria UNO objektą. „Windows“ sistemoje taip pat galite sukurti OLE objektus.

Å is metodas sukuria tipo, kuris perduodamas kaip parametras, egzempliorius.

Sintaksė:

oObj = CreateObject(type)

Parametrai:

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

Pavyzdys:


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

Paremkite mus!