ConnectToObject

Description

Associates an OLE object with a PowerBuilder OLEObject variable and starts the server application. The OLEObject variable and ConnectToObject are used for OLE automation, in which the PowerBuilder application asks the server application to manipulate the OLE object programmatically.

Applies to

OLEObject objects

Syntax

oleobject.ConnectToObject ( filename {, classname } )

Returns

Integer. Returns 0 if it succeeds or a negative value if an error occurs.