Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiler does not catch this syntax error, bug?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00901990
Message ID:
00902892
Views:
26
Dawa,

>c = "copy file a.txt to c:\a.txt"
>&c && works
>evaluate(c) && you get syntax error

Evaluate() can not execute commands, it evaluates expressions.
lcInFile = "a.txt"
lcOutFile = "c:\a.txt"
copy (lcInFile) to (lcOutFile)
would be another case where name substitution should be used instead of & macros
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform