Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Jun 4, 1999

DataObject Object

Question:
In an event, I declared a dataobject variable and instantiated it this way :
     Dim do_1 as dataobject
     
     Set do_1= New dataobject

But when I run the program I get this error: "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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date