Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Activate – PB Docs 150 – PowerBuilder Library

Activate – PB Docs 150

Activate PowerScript function

Description

Activates the object in an OLE container, allowing the user
to work with the object using the server’s commands.

Controls

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

Syntax

Argument

Description

objectref

The name of the OLE control or the fully
qualified name of a OLE DWObject within a DataWindow control that
contains the object you want to activate.

The fully qualified name for a DWObject has this syntax:

activationtype (optional)

A value of the enumerated datatype omActivateType
specifying where the user will work with the OLE object. Values
are:

  • InPlace! – (Default)
    The object is activated within the control. The subset of menus
    provided by the server application are merged with the PowerBuilder
    application’s menus.

  • OffSite! – The object is activated in the
    server application, which gives the user access to more of the server
    application’s functionality.

    For the OLE control, activationtype is
    required.

Return Values

Integer. Returns 0 if it succeeds and
one of the following negative 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,
Activate returns null.

Examples

This example activates the object in ole_1 in
the server application:

This example activates the OLE DWObject ole_graph in
the DataWindow control dw_1 in the
Microsoft Graph server application:

See Also


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