Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'CD' Command
Message
 
 
To
17/05/2001 11:44:40
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00508322
Message ID:
00508374
Views:
24
>>>>I know you answered yourself, but the correct solution is:
>>>>
>>>>CD (gcPath)
>>>>
>>>
>>>This solution is even better but how and why does it works? Why is adding parenthesis any different from 'CD gcPath'?
>>>
>>>Thanks again, Stephane.
>>
>>The macro expansion effectively eliminates the quotes around your variable whcih makes the space in the path invalid.
>
>I understand the problem with my earlier declaration. The thing I don't get is why it's working when you add some parenthesis? What's the difference for VFP between
>
>CD gcPath
>and
>CD (gcPath)
>
>Btw, you have a nice signature. I agree with "GO BLUES" but I'll continue with "GO DEVILS"!
>
>Stephane.

Thanks on the Sig. The problem with CD gcPath is VFP looks for a path literally named gcPath instead of the value of gcPath. Putting the gcPath in parens tells VFP to use the value of the variable inside the parens.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform