CreateObject Function

UNO オブジェクトを作成します。Windows では、OLE オブジェクトも作成できます。

このメソッドにより、パラメーターとして渡されるタイプのインスタンスが作成されます。

構文:

oObj = CreateObject( type )

例:

Type address

    Name1 As String

    City As String

End Type

 

Sub main

    myaddress = CreateObject("address")

    MsgBox IsObject(myaddress)

End Sub