Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any VFP 7 like version of GETDIR() for VFP 6?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00724840
Message ID:
00725016
Views:
19
Hi James,

Being very lazy myself, I understand you well. Anyway, let me recall all I know about this problem.

First of all, code by Ed Rauh (which I showed by FAQ reference and Cheang by posting it directly in the thread) would not work on Windows 95, as I recall. CreateObject('Shell.Application') line would fail.

I believe, Andrew Coates has a quite complicated implementation of ShBrowseForFolder on his site.

Also I reffered you to Martin Jindra. I tested his PDM utiility and while doing that I noticed, that GetDir doesn't allow to create a new folder. This led him to create a special function, which in addition to allowing New folder creation, had customised each button caption. He wanted to publish it here as a separate Download, but seems like he didn't do so. Therefore I suggest you to contact him directly and ask about it...

>My response was because with a couple of clicks, I saw a couple of lines of code that seem to do the trick. I didn't have to download an EXE nor did I have to dig through a FAQ. A knee jerk reaction, possibly.
>
>I will also have to admit that I'm not happy with what COULD be returned from this function/method call (GUIDs, etc.) and the code from Cheang Hoong Wan will help resolve that.
>
>And, as is always the case ... "I get to show my humanity everyday"
>
>=======================
>James Jernigan
>Nashville, TN USA
>jrjernigan@hotmail.com
>
>"To err is human ... I should know, I get to show my humanity everyday!" jrj

>
>>My message and message by Cheang Hoong Wan are using the same function.
>>
>>>***** DING DING DING DING DING *****
>>>And the Winner Is!
>>>
>>>Thanks one and all, but this one seems to be the easiest to implement.
>>>Gotta test on some older machines (running Win95 - ugh!).
>>>
>>>But it looks good to me!
>>>
>>>Thanks,
>>>James
>>>
>>>=============================================================================
>>>
>>>>>Let me preface this with the following points:
>>>>>1. I have to use Visual FoxPro 6.0 (SP 5)
>>>>>2. I know GETDIR() in Visual FoxPro 7.0 has what I want
>>>>
>>>>>I would like to have a function (either User Defined Function, API call, ActiveX, wrapper, etc.) that I could use instead of the Visual FoxPro 6.0 GETDIR() function to retrieve a directory/folder path name that will allow the user to create a folder "on-the-fly" via the dialog box when necessary. I know that there is one in Windows (Copy/Move To displays this one). I just cannot seem to find the API name/call/define for it.
>>>>
>>>>You can try this:
>>>>--- How can I use GETDIR with a network drive? ---
>>>>--- Alex Feldstein ---
>>>>http://www.feldstein.net/netgetdir.asp
>>>>
>>>>Hope this Help.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform