Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Addbs adds no backslash
Message
De
23/10/2006 14:47:08
 
 
À
23/10/2006 11:43:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01163916
Message ID:
01163956
Vues:
8
By design.

Also a potential security issue. If you added a BS to a blank string, you get the root of the current ("SET DEFAULT") drive which may not be a good idea.

OTOH, if you are specific, as in ADDBS(SET("DEFAULT")) then it adds a BS to the drive letter.


>I have noticed that addbs() does not add a backslash if given an empty path. I'd expect a backslash even in that case, creating a reference to the root! I can't imagine that this was done by design. Who's at vault?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform