Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract the name of a Folder
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01397921
Message ID:
01397924
Views:
59
JUSTPATH() will extract a path w/o backslash at the end from a file name. ADDBS() will add backslash at the end of a directory name if there isn't one. However, to get correct results you have to apply JUSTPATH() to a file name and ADDBS() to a directory names respectively.

>
>I have :
>
>"c:/data/data1/myfile.txt " and i want "c:/data/data1/"
>OR
>"c:/data/data1 " and i want "c:/data/data1/"
>OR
>"c:/myfile.txt " and i want "c:/"
>OR
>"c:/data/myfile.txt " and i want "c:/data/"
>
>Thanks in advance or help.
>
>bernhart
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform