Question:
In an event, I declared a dataobjectvariable and instantiated it this way :
Dim do_1 as dataobject Set do_1= New dataobject
But when I run the program I get thiserror: “Invalid use of ‘new’ keyword”Why is this happening?
Answer:
The dataObject is a container to transfer data from a component source to a component target during OLE drag and drop events. Therefore, this object cannot be created in your code. It is only passed to OLE Drag and Drop procedures like OLEDragDrop, OLEStartDrag, OLEDragOver, and OLESetData.
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.






















