Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADDLISTITEM and doublebackslash '\\'
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00544910
Message ID:
00545143
Views:
26
>Hello all,
>
>I just ran across something quite strange. I have a table which holds links to files on the network. The table holds the path using UNC path names. i.e. \\server\sharename\filename.txt
>
>When I attempt to do an ADDLISTITEM(Table.FileName) the list item appears as \server\sharename\filename.txt
>
>Does anyone have any idea as to why the first backslash would be truncated?

You can disable item in the listbox by prefixing it with one backslash "\" .
Because of that you have to double all backslahes in the list item
lcFileName = "\\server\sharename\filename.txt"
ADDLISTITEM( STRTRAN(lcFileName, "\", "\\") )
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform