Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview & windows explorer
Message
From
21/02/2017 12:08:09
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/02/2017 06:22:27
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01648235
Message ID:
01648286
Views:
44
>I updated the zip adding a listbox for oledragdrop from windows explorer

From WExp (actually, now it's called file explorer, though it can't even open any file) it won't drop into your form, I'm getting the no-parking-sign icon. However I can try to drop from TotalCommander's file windows, but then I'm getting

- into textbox, I get the fullpath of the file/folder (works on UNC too)

- into listbox, adds the fullpath of the fils/folder to the list

- with treeview, on the line with odataobject.GetData() it says "OLE error code 0x8002000e: Invalid number of parameters.". oDataobject.files collection seems to have only one member, and oDataobject.files(1) is a string containing the fullpath of the file.

If I drop four files

- textbox contains the fullpath of the first file
- listbox contains all four files
- treeview gets the same error
- trying to get odataobject.files.count throws an error, but assigning oC=odataobject.files (old trick with OLE objects, going deeper into hierarchy doesn't work, but assign a member to a variable and then you can dig one level deeper) shows .count=4. oC.item(1) is the full filename of the first file etc.

That's it for now.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform