Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADDLISTITEM and doublebackslash '\\'
Message
 
 
À
16/08/2001 15:18:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00544910
Message ID:
00545143
Vues:
19
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform