RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IWebBrowser2.ExecWB Method

Executes a command.

Pascal
procedure ExecWB(cmdID: OLECMDID; cmdexecopt: OLECMDEXECOPT; var pvaIn: OleVariant; var pvaOut: OleVariant); safecall;
C++
__fastcall ExecWB(OLECMDID cmdID, OLECMDEXECOPT cmdexecopt, OleVariant pvaIn, OleVariant pvaOut);

ExecWB uses the IOleCommandTarget interface to pass a command to the Web browser control. For more information, see the Microsoft documentation of IOleCommandTarget. 

cmdID specifies the command to execute. The Web Browser does not support all the commands for which Microsoft provides constants. Use the QueryStatusWB method to determine what commands can be used. 

cmdexecopt modifies how the command is executed. 

pvaIn specifies a Variant array that contains any input arguments. This value can be omitted if there are no input arguments. 

pvaOut specifies a Variant that receives the results of the command, if any. This value can be omitted if there are no results. 

 

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