Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CD and justStem()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01129637
Message ID:
01129899
Views:
18
>>In VFP6, cd ? presents the current directory as the 'root'.
>>In VFP8, cd ? has some sort of algorithm which will present either the current drive's root directory as 'root' or the 'My Computer' as 'root'
>
>Would CD GETDIR() work for you?

Yepp! Thanks.

>
>>In VFP6, justStem() on a directory return the right most directory name.
>>In VFP8, justStem() on a directory returns an empty string.
>
>The justStem() function doesn't know if the parameter passed is file name, directory or something else so it's not clear what you mean.

In VFP8, justStem("c:\dir\lvl\") return empty
but
justStem("c:\dir\lvl") return "lvl"

So , I adjusted the code to justStem( set('directory') )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform