Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spaces in Paths
Message
From
30/04/2012 14:28:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Spaces in Paths
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01542915
Message ID:
01542915
Views:
76
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.
Next
Reply
Map
View

Click here to load this message in the networking platform