Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Addbs adds no backslash
Message
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:
01164233
Views:
13
>As it has to preserve the Path that represents,
>and because in the cPath dataspace:
>"" == "." == ".\" not = "\"
>empty has to remain empty.

Peter, to clarify this a bit more:
STRTOFILE("This is a test", "test.txt")

lcPath = ''

? FILE(lcPath + "test.txt")
? FILE(ADDBS(lcPath) + "test.txt")

lcPath = lcPath + "\"
? FILE(lcPath + "test.txt")
ADDBS() should not change the path. If it worked the way you expected, it would.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform