Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview & windows explorer
Message
De
21/02/2017 12:08:09
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/02/2017 06:22:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01648235
Message ID:
01648286
Vues:
43
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform