Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set default to a variable
Message
From
26/03/2009 12:56:58
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01390475
Message ID:
01391663
Views:
39
>There's no reason to use macro substitution in this case
agreed



>and it'll also fail if there're spaces in the path.
agreed


My opinion, however, is that there is also no reason not to point out the error in the code and then show a preferred alternative and explain why it is better.

In the unlikely event that the && was not a typo it's useful to point out correct syntax for the times when macro substitution really is the correct solution.



>
>>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