DoVerb PowerScript function
Description
Requests the OLE server application to execute the specified
verb for the OLE object in an OLE control or OLE DWObject.
Controls
OLE controls and OLE DWObjects (objects within a DataWindow
object that is within a DataWindow control)
Syntax
|
1 |
<span>objectref</span>.<span>DoVerb</span> ( <span>verb</span> ) |
|
Argument |
Description |
||
|---|---|---|---|
|
objectref |
The name of the OLE control or the fully
|
||
|
verb |
An integer identifying a verb known to |
Return Values
Integer. Returns 0 if it succeeds and
one of the following values if an error occurs:
-
-1 Container
is empty -
-2 Invalid verb for object
-
-3 Verb not implemented by object
-
-4 No verbs supported by object
-
-5 Object cannot execute verb now
-
-9 Other error
If any argument’s value is null, DoVerb returns null.
Examples
This example executes verb 7 for the object in the
OLE control ole_1:
|
1 |
integer result |
|
1 |
result = ole_1.<span>DoVerb</span>(7) |
This example executes verb 7 for the object in the
OLE DWObject ole_graph:
|
1 |
integer result |
|
1 |
result = dw_1.Object.ole_graph.<span>DoVerb</span>(7) |
See Also
-
OLEActivate in the DataWindow
Reference