Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using GETDIR() and Non-drives
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00619033
Message ID:
00619107
Views:
34
>>>Yes, I know how the function works. What I want to know is how to find out if the user chose "My Computer" or "Desktop". Making it so they can't select them does solve the problem, yes, but so does deleting a command button because you have a bug in the click event.
>>>
>>>Does anyone have an answer to my actual question?
>>>
>>
>>Sorry, but you're actual question is not legitimate, at least not on my tests. If I do
? GETDIR("c:\","test","test")
>>and click on My Computer, it returns "C:\", which is the default drive for My Computer.
>>If I click on My Documents, the return value is "C:\DOCUMENTS AND SETTINGS\JOHN.HERRING\MY DOCUMENTS\".
>>If I click on Desktop, the return value is "C:\DOCUMENTS AND SETTINGS\JOHN.HERRING\DESKTOP\". That is what is happening here. Using VFP7 on Win2k.
>>jfh
>
>Confirmed. Items like the "My Computer", "Recycle Bin" and "My Network Places" return a C:\. Simply adding a 1 as the fourth parameter makes these items unselectable. If you want further control, go search for a 3rd party product or get busy <vbg>.
>
>Doug

Actualy they return drive letter for the current VFP or specified in GETDIR() directory.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform