Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLDdragdrop data.getdata(format???)

Status
Not open for further replies.

Horrid

Programmer
Joined
May 20, 1999
Messages
373
I have made a web toolbar that users can drag items onto and I capture the URL.
The problem is that the getdata function requires you to specify the format you want to get the data in. When they drag a jpg I get an error because I try to read it as a string and not a binary. How do I get the format to use in the getdata funciton?

Thanks
 
I'm not really familiar with getdata, but the entry
in MSDN says that if the format is set as 0 or
is omitted, then getdata uses the "appropriate"
format.

does this help at all? 8-)
 
Check the format with GetFormat. It returns a boolean dependant upon the datatype you want to check, to

If Data.GetFormat(1) = True Then ' It's a string...

If Data.GetFormat(2) = True Then ' A Bitmap

...etc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top