%CoCreateObject Interface

Call to create a COM Object.

Syntax

retcode = %CoCreateObject( Param1, Param2, Param3 )

Parameter(s)

Param1 [in]

CAutoCTRL handle.

Param2 [in]

ProgID name (for example, Excel.Application.8).

Param3 [out]

Dispatch object containing the IUnknown interface.

Returns

A Boolean (Success or Fail)

Error Handling

Call CoGetException to get an error description.

See Also

Using the COM Interface to FlashBASIC

FlashBASIC Automation Application Interfaces