Navigation:  thinBasic Modules > COM >

COM_SetProperty

Previous pageReturn to chapter overviewNext page

 

Description

 

Sets value of property of existing instance of COM object.

 

Syntax

 

success = COM_SetProperty(pIDispatch, propertyName, numParams, params)

 

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 property to be set

numParams

Number

No

Number of parameters passed

params()

Variant

No

Arrays of VARIANT type representing the values

 

Remarks

 

Restrictions

 

See also

 

COM_CreateObject

COM_Succeeded

COM_GetProperty

 

Examples