>>>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