Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set default to a variable
Message
From
26/03/2009 02:26:55
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01390475
Message ID:
01391546
Views:
38
>Would not work as is if the directory contains spaces.

Agreed and agreed that name expressions are better.

Just wanted to point out an error in her code which most likely prevented it from working. After all, there are still some places where name expressions don't work and macro expansion is needed. In the very unlikely event the && was not a typo, it's not a bad idea to have correct syntax pointed out.




>
>>>I have a variable cDir, I want to set default to cDir.
>>>
>>>I tried SET DEFAULT TO &&cDir, but it doesn't give me the correct result.
>>>
>>>Pls help. TIA.
>>
>>I know you've gotten answers about a better way to do this but.............
>>
>>using a macro expansion should work. Unless there's a typo in your message you have one to many &
>>
SET DEFAULT TO &cdir
>>
>>You've actually turned cDir into a comment and have issued
>>SET DEFAULT TO
Previous
Reply
Map
View

Click here to load this message in the networking platform