Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a Bug?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00812190
Message ID:
00812210
Views:
11
Simon,

The VFP parser is quite literal when it parses a line of code, if it sees && at any point in the line it ignores the rest of the line.

It does not pay attention to the fact that you had the && in a string literal. It sees the line of code as this:

lcTxt = "

which is an invalid statement.

This also extends to ¯os which will expand inside a string literal, which has always annoyed me. Literals should be sacrosanct.

m = "i6"
lcX = "m&m"
? lcX && you don't get the candy, you get the British spy agency instead

>If you try any of the following you get an error in VFP 7 and VFP8.
>
>lcTxt="&&"
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