RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComObj.SetDispatchPropValue Function

Sets the value of a property on an IDispatch interface.

Pascal
procedure SetDispatchPropValue(Disp: IDispatch; DispID: Integer; const Value: OleVariant); overload;
procedure SetDispatchPropValue(Disp: IDispatch; Name: WideString; const Value: OleVariant); overload;
C++
SetDispatchPropValue(IDispatch Disp, int DispID, const OleVariant Value);
SetDispatchPropValue(IDispatch Disp, BSTR Name, const OleVariant Value);

ComObj

Call SetDispatchPropValue to assign the value specified by the Value parameter to the specified property of the IDispatch interface given by the Disp parameter. The DispID parameter gives the dispatch ID of the property to set. 

 

EnumDispatchProperties 

GetDispatchPropValue

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!