Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does GETDIR() work as documented?
Message
From
06/05/2004 09:48:25
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00901533
Message ID:
00901543
Views:
18
Thanks George. I thought I was loosing it. I'll give your suggestion a try.

Regards,

Mike

>>I'm using VFP8SP1 under Windows2000 Professional. From the command window, I type:
>>
>>
>>
>>r = GETDIR("","Locate a folder", "", 1+2+64)
>>
>>
>>
>>A "Browse for folder" dialog opens as expected with all of the "new dialog styles" supported under Windows2000 and higher. My issue is with the documentation that says if I use flag 1 and 2, it should:
>>
>>Flag 1
>>
>>"Return only file system directories (physical locations).
>>If a user selects folders that are not part of the file system, the OK button is grayed."
>>
>>Flag 2
>>
>>"Do not include network folders below the domain level in the tree view control
>>(For example, My Computer and My Networks)."
>>
>>
>>Does this work as documented? I've been able to select folders from mapped drives, network drives, My Computer and My Network Places. Is this not contrary to what the documentation says should happen? No matter what I try, "the OK button is [never] grayed".
>>
>>BTW, what's up with the use of the word "grayed". How about using "disabled" for the users who have orange buttons with the "Pumpkin" color scheme...not that I would use it ;).
>>
>>What am I doing wrong?
>>
>Mike,
>
>Nothing that I can see. There seems to be a problem with the implementation. The new functionality maps to the Shell.Application object's BrowseForFolder method. You'll see the results you expect by using the Shell.Application directly. Just do a
oShell = CREATEOBJECT('Shell.Application')
and follow the tool tips for the parameters.
Previous
Reply
Map
View

Click here to load this message in the networking platform