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:
01164388
Views:
10
>>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.

Yes, I understand the formal logic. However, the 'human logic' must also be considered. I think it is the main reason why extensive documentation is crucial.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Reply
Map
View

Click here to load this message in the networking platform