WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Errors

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

3052 Uninitalized variable or undefined function with OLE

Keywords: OLE objectopen 3052

Question:

I am getting the Error 3052 Uninitialized Variable or Undefined Function Using OLE. Why is this happening?

Here is my code:

	url=http://www.windowware.com
	obj_name=ObjectOpen("Netscape.Network.1")
	xx=obj_name.Open(url,0,0,0,0) ; Here is where I see the Error

Answer:

The problem is caused by using an underscore "_" within OLE.

Make sure any special object handle variables to be used when referring to the object (such as obj_name in the example above) do not have the underscore character. This is not a WIL variable, it is an OLE object handle, so it is handled differently than are WIL variables (which CAN have underscores in their names).

Try the following example (with the underscores removed):

	url=http://www.windowware.com
	obj=ObjectOpen("Netscape.Network.1")
	xx=obj.Open(url,0,0,0,0)


Article ID:   W13659
Filename:   3052 Error with OLE.txt
File Created: 1999:04:15:16:55:30
Last Updated: 1999:04:15:16:55:30