Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why ADDBS puts extra backslash
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01216579
Message ID:
01216583
Vues:
11
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform