CreateObject Function

UNO 개체를 만듭니다. Windows에서는 OLE 개체를 만들 수도 있습니다.

이 메소드는 매개 변수로 전달되는 유형 인스턴스를 만듭니다.

Syntax:

oObj = CreateObject(type)

Parameters:

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

Example:


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

Please support us!