RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComObj.GetDispatchPropValue Function

Returns the value of a property on an IDispatch interface.

Pascal
function GetDispatchPropValue(Disp: IDispatch; DispID: Integer): OleVariant; overload;
function GetDispatchPropValue(Disp: IDispatch; Name: WideString): OleVariant; overload;
C++
OleVariant GetDispatchPropValue(IDispatch Disp, int DispID);
OleVariant GetDispatchPropValue(IDispatch Disp, BSTR Name);

Call GetDispatchPropValue to read the value of the property with the dispatch ID specified by DispID from the IDispatch interface given by Disp. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!