Home » Developer & Programmer » Forms » FRM:40926 Ole Object is null
FRM:40926 Ole Object is null [message #129387] Sun, 24 July 2005 23:26 Go to next message
jivnath
Messages: 14
Registered: May 2005
Location: Kathmandu
Junior Member
can any one tell me how to create and set ole object instance.
how to access its method and property.
Re: FRM:40926 Ole Object is null [message #199946 is a reply to message #129387] Fri, 27 October 2006 01:43 Go to previous message
niva2004
Messages: 15
Registered: October 2006
Location: Cochin
Junior Member
first you have to place an ole container in form.
in the Layout Editor, move the mouse cursor on the OLE container and access the OLE popup menu (right -click on Microsoft Windows platforms).
From the OLE popup menu, choose Insert Object.
The Insert Object dialog box appears.

From the Insert Object dialog box, click Create from File.

Specify the file name of the object to link.
You can use the Browse option to help locate the file. If you use the Browse option, click OK from the Browse dialog box after selecting a file.

In the Insert Object dialog, check the Link check box.

Click OK.

To import OLE methods:

1 Choose ProgramImport OLE Library Interfaces…
The Import OLE Library Interfaces dialog box appears.

2 Select an OLE Class.
The methods and events packages appear for the selected OLE class.

3 Ctrl-click on the desired methods packages.

4 Check the Methods check box to import the method.

5 Check the Properties check box to import the get and set accessors for properties.

6 Click OK.
Previous Topic: cursor style
Next Topic: Change value of text item at run-time
Goto Forum:
  


Current Time: Fri Sep 20 11:29:55 CDT 2024