Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why ADDBS puts extra backslash
Message
 
 
To
16/04/2007 23:07:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01216579
Message ID:
01216583
Views:
13
>Hi friends
>according to help file ADDBS does not duplicate if one does exist(ie. backslash).
>my following code returns 2 backslashes ! am i doing anything wrong here ?
>
>LOCAL lctmp
>m.lctmp = ALLTRIM(FILETOSTR('Network.txt')) && this has c:\windows\
>m.lctmp = ADDBS(m.lctmp)
>MESSAGEBOX("temp version " + lctmp ) && this displays c:\windows\\

Works correctly for me in VFP8. Are you sure you don't have \\ in the file?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform