Home · Appeon Web | Appeon Mobile | Appeon PowerBuilder · Appeon Online Help . ConnectToNewObject · ConnectToNewRemoteObject · ConnectToObject . AddEmail ActiveX can be used to send emails from PowerBuilder applications. To use AddEmail in ConnectToNewObject(“il”) < 0 Then. Has anyone had any experience w/ConnectToNewObject? I hav a DLL in the l articles. 12 followers.

Author: Kazizilkree Gagis
Country: Turkmenistan
Language: English (Spanish)
Genre: Marketing
Published (Last): 15 March 2010
Pages: 175
PDF File Size: 14.16 Mb
ePub File Size: 12.69 Mb
ISBN: 819-5-97299-599-5
Downloads: 15504
Price: Free* [*Free Regsitration Required]
Uploader: Shaktigar

ConnectToNewObject returns -3

OLEObject is a dynamic object type, which means that the compiler will accept any property names, function names, and parameter lists for the object. PowerBuilder does not have to know whether the properties and functions are valid.

This allows you to call methods and set properties for the object that are known to the server application that created the object. If the functions or properties do not exist during execution, you will get runtime errors.


Connecting to an object starts the appropriate server:.

OLEObject object type

Create a new object for an OLE server that you specify. Its purpose is similar to InsertClass for a control. Create a new OLE object in the specified remote server application if security on the server allows it and associate the new object with a PowerBuilder OLEObject variable.

Open an connecttonewobjecct OLE object from a file.

You do not need to include application qualifiers for the commands. For earlier versions of Microsoft Word, use word. The following commands connect to the Microsoft Word 7.

Do not include word.

For an object in a control, you must use the qualifier application. After your application has finished with the automation, you might need to tell the server explicitly to shut down.

You can also disconnect from the server and release the memory for the object:. You can rely on garbage collection to destroy the OLEObject variable.

Destroying the variable automatically disconnects connecttonewobnect the server.

  BS EN 772-1 PDF


It is preferable to use garbage collection to destroy objects, but if you want to release the memory used by the variable immediately and you know that it is not being used by another part of the application, you can explicitly disconnect and destroy the OLEObject variable, as shown in the code above. View this document as PDF. Using OLE in an Application.