Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FoxPro compiler error
Message
From
06/02/2013 16:38:05
 
 
To
06/02/2013 16:18:09
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01565298
Message ID:
01565347
Views:
53
>You said: The syntax of the source code line was the issue. Not what
> it evaluated to at runtime. Using the explicit syntax:

>
>I disagree. What you are saying is that if I wanted to use macro substitution
>in that line, I would get an error, and that I would be prevented from compiling my
>EXE because of that error.

I think what it's revealing is that whenever the VFP compiler finds an ampersand, it encodes the instruction as is regardless of any requirements of syntax. This allows it to be evaluated at runtime to determine if it is valid.

Inside a quoted character string like this, I'm not sure it's such a good idea. At the very least a warning should be generated. :-)

>I think this is being handled correctly. It is in fact impossible to know that
>that line of code has a problem, just as for this simple line:
>
foo = (&a
Yup. Whenever there's an ampersand, the sky's the limit.
Previous
Reply
Map
View

Click here to load this message in the networking platform