Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADDLISTITEM and doublebackslash '\\'
Message
 
 
To
17/08/2001 10:24:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00544910
Message ID:
00545332
Views:
14
>>>Sergey,
>>>
>>>I guess you have found another error in the documentation then. When I run
>>>lcFileName = "\\server\sharename\filename.txt"
>>>?STRTRAN(lcFileName, "\", "\\")
>>>
>>>I get "\\\\server\\sharename\\filename.txt"
>>>
>>
>>Hi Jim,
>>
>>Yes, it's correct but when you add item like this to list box using ADDLISTITEM( STRTRAN(lcFileName, "\", "\\")) it shows as "\\server\sharename\filename.txt". That's what we were discussing.
>
>I understand that, Sergey.
>
>But. . . given your observation, then I have an even bigger problem.
>I commonly run something like *I* wrote above from the COMMAND WINDOW just to confirm that I will get the result expected when I put the code into my program/method. When it is right I copy/paste that code.
>Here we are now with something that gives a different output depending on what other function/method it might also be coded with???? Not good news to me.
>
>UPDATE: I finally located the Help that you referred to (was not easy). That is something that needs much wider coverage than this one single place in the documentation. I guess it was there for VFP6 too?

At least it's documented in VFP 7 for the listbox but I couldn't find it in VFP 6 help. BTW, did you know that can search for special characters, using following C language representations in the text boxes in the Find dialog box?
Enter                \r 
Tab                  \t 
Backslash            \\ 
New line (line feed) \n
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform