Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I need select directory (not file)
Message
De
28/04/1999 17:32:36
 
 
À
28/04/1999 15:20:16
Alex Zhadanov
Computer Generated Solutions
New York City, New York, États-Unis
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00212134
Message ID:
00213212
Vues:
30
>>>Hi all.
>>>Is there equvalent of VFP function getdir()?
>>>I need to choose directory. If i use common dialig control i can only
>>>select files in directory not directory itself.
>>
>>You might want to look at the VFP FAQ entry I did on an enhanced GETDIR for VFP that uses the Shell.Application object; it should be easy enough to translate it to VB.
>>
>>>Thank you Alex
>Thanks Ed.
>It's working.But I use late binding like in VFP. How i can use early binding,i.e. what type library should be checked on the refernce screen?

AFAIK, you need to reference it through the IDispatch interface (late binding). Since it's using Shell services IAC, you're probably infinitely better off avoiding early binding, since shell versions are likely to vary system to system. You can use the provider, SHDOCVW.DLL, to get the details if you really want to try it.

>Thanks again.Alex
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform