Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Folder Name
Message
From
03/02/2005 13:09:49
 
 
To
03/02/2005 12:13:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00983436
Message ID:
00983559
Views:
10
>>Hi all,
>>
>>I have cdir = "c:\Myapp\mydata\Bo\" and i want "bo".
>>
>>How can i do it ?
>>
>>thank in advance
>>
>>Bernhart
>
>
>cdir = juststem(JUSTpath("c:\Myapp\mydata\Bo\"))
>
Greg,

Whilst your solution _is_ correct in this case, you do realize that you make two dangerous assumptions

(1) You assume the arg ends with a backslash

(2) You assume that the foldername does not have an extension ( eg config.mso )
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform