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

DisconnectObject – PB Docs 2019 – PowerBuilder Library

DisconnectObject – PB Docs 2019

DisconnectObject

PowerScript function

Description

Releases any object that is connected to the specified OLEObject
variable.

Applies to

OLEObject objects

Syntax

Argument

Description

oleobject

The name of an OLEObject variable that you want to
disconnect from an OLE object. You cannot specify an OLEObject
that is the Object property of an OLE control.

Return value

Integer.

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

-1 — Invalid call: the argument is the Object property of a
control

-9 — Other error

If oleobject is null, DisconnectObject returns null.

Usage

The OLEObject variable is used for OLE automation, in which the
PowerBuilder application asks the server application to manipulate the OLE
object programmatically.

For more information about OLE automation, see
ConnectToObject.

Examples

This example creates an OLEObject variable and connects it to a new
Excel object; then after some unspecified code, it disconnects:

See also

ConnectToObject

ConnectToNewObject


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