Hi all

Has anyone successfully used oledragdrop from vfp to explorer so that a 
list of files can be supplied which are then copied to the selected 
folder in explorer?

I can go the other way (explorer to vfp) fine, but from vfp to explorer 
- it doesn't barf or anything and it gives every indication that it 
should work (icon changes) but then nothing happens.

here's the code:

-------------------
OLEstartDrag:

LPARAMETERS oDataObject, nEffect
LOCAL ARRAY aSource[1]

nEffect = 1
oDataObject.ClearData()
oDataObject.SetFormat(15)
--------------------
OLEsetData:

LPARAMETERS oDataObject, eFormat
LOCAL ARRAY aSource[1]

IF TRANSFORM(eFormat ) == '15'
    aSource[1] = 'MySourceFileandFullPath'
    oDataObject.SetData(@aSource)
ENDIF
--------------------

If I change the format to 1 (text) I can drag MySourceFileandFullPath 
into an object that accepts text, so I'm pretty sure that the data is 
OK.  But I'm missing something ...


-- 
Cheers

============
Brian Abbott

ACA Systems
============



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to