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