DoVerb

Description

Requests the OLE server application to execute the specified verb for the OLE object in an OLE control or OLE DWObject.

Applies to

OLE controls and OLE DWObjects (objects within a DataWindow object that is within a DataWindow control)

Syntax

objectref.DoVerb ( verb )

Argument

Description

objectref

The name of the OLE control or the fully qualified name of a OLE DWObject within a DataWindow control for which you want to execute a verb. The fully qualified name for a DWObject has this syntax:

dwcontrol.Object.dwobjectname

verb

An integer identifying a verb known to the OLE server application. Verbs are operations that the server can perform on the OLE object. Check the documentation for the server’s OLE implementation to find out what verbs it supports.

Returns

Integer. Returns 0 if it succeeds and one of the following values if an error occurs:

If any argument’s value is null, DoVerb returns null.

Examples

Example 1

This example executes verb 7 for the object in the OLE control ole_1:

integer result

result = ole_1.DoVerb(7)

Example 2

This example executes verb 7 for the object in the OLE DWObject ole_graph:

integer result

result = dw_1.Object.ole_graph.DoVerb(7)

See also