Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Spaces in Paths
Message
De
30/04/2012 14:28:43
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Spaces in Paths
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01542915
Message ID:
01542915
Vues:
77
I put double quotes around fully a qualified name with
spaces in the path, of course. But it appears that
many (all?) of the file- or skeleton-related
VFP commands produce the same result, with
or without the quotes, e.g.,

x = "\Program Files\MyFileName"
y = ' "\Program Files\MyFileName" '
FILE(x) = .T.
FILE(y) = .T.

When storing such values in a memvar,
I've been including the double quotes,
just to be sure. But what's the rule of
thumb here? Are there any commands that are
gotchas? (I've noticed, for example,
that, with the above, ADDBS(y) produces
a result with no quotes.) Am I always
safe without quotes in a name expression?

TIA,
-m.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform