Navigation:  thinBasic Modules > COM >

COM_CallMethod

Previous pageReturn to chapter overviewNext page

 

Description

 

Calls method of existing instance of COM object.

 

Syntax

 

success = COM_CallMethod(pIDispatch, methodName, numParams, params() [, vResult] )

 

Returns

 

Success flag which can be tested using COM_Succeeded

 

Parameters

 

Name

Type

Optional

Meaning

pIDispatch

DWORD

No

DWORD pointer to IDispatch COM object variable

methodName

String

No

Name of method to be called

numParams

Number

No

Number of parameters passed

params()

Variant

No

Arrays of VARIANT type representing the parameters

vResult

Variant variable

Yes

Return value of the method

 

Remarks

 

Restrictions

 

See also

 

COM_CreateObject

COM_Succeeded

COM_GetProperty

 

Examples