Activating the OLE object – PB Docs 125

Activating the OLE object

Generally, the OLE control is set so that the user can activate
the object by double-clicking. You can also call the Activate function
to activate the object in a script. If the control’s Activation
property is set to Manual, you have to call Activate to
start a server editing session:

You can initiate general OLE actions by calling the DoVerb function.
A verb is an integer value that specifies
an action to be performed. The server determines what each integer
value means. The default action, specified as 0, is usually Edit,
which also activates the object.

For example, if ole_1 contains
a Microsoft Excel spreadsheet, the following statement activates
the object for editing:

Check the server’s documentation to see what verbs
it supports. OLE verbs are a relatively limited means of working
with objects; automation provides a more flexible interface. OLE
1.0 servers support verbs but not automation.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x