>Hi,
>
>just want to throw in that this is buggy ..
>
>
>#define CF_DIB 8
>if oDataObject.GetFormat( 2 )
> lcData = oDataObject.GetData( CF_DIB )
> strtofile( lcData, "myimage.dib" )
> this.picture = "myimage.dib"
>endif
>
>
>only because the Dataobject contains data of type CF_BITMAP doesn't neccessarily mean that there's also data of type CF_DIB .. Word puts images in both formats into the dataobject .. but that doesn't have to be true for other applications .., it's up to the application you're dragging from if there is CF_DIB data, CF_BITMAP or both.
>
Christian,
I have tested from several apps. When an image is drag from other apps then drop into VFP, if there is a CF_BITMAP data, it always has CF_DIB. But if it is CF_DIB it doesn't have to have CF_BITMAP.
You can try it yourself. However it is a good advice for defends code as always :)
Regards
Herman