ConnectToNewRemoteObject

Description

Creates a new OLE object in the specified remote server application (if security on the server allows it) and associates the new object with a PowerBuilder OLEObject variable. ConnectToNewRemoteObject starts the server application if necessary.

Applies to

OLEObject objects

Syntax

oleobject.ConnectToNewRemoteObject ( hostname, classname )

Returns

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