Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Addbs adds no backslash
Message
From
23/10/2006 14:48:11
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01163916
Message ID:
01163958
Views:
8
>I have noticed that addbs() does not add a backslash if given an empty path. I'd expect a backslash even in that case, creating a reference to the root! I can't imagine that this was done by design. Who's at vault?

empty to empty, it is correct.

within VFP an "empty path" is "the default directory",
and ADDBS() must preserve it.
? FILETOSTR("filename.filetype")
* this must to be equal
? FILETOSTR(ADDBS(JUSTPATH("filename.filetype"))+JUSTFNAME("filename.filetype"))
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform