CreateObject Function

បង្កើត​វត្ថុ UNO មួយ ។ នៅ​លើ​វីនដូ ក៏​អាច​បង្កើតវត្ថុ 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