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:
00812208
Views:
18
Sergey,

I don't think we got && end of line comments until VFP3.

Before that the parser simply ignored the line content once a fully parseable line was read. Which led to (junk IMHO) code like this:
if ( cond )
   ...
endif cond
>It's a known issue since FOX 2.6 days, maybe even eirlier. FoxPro incorrectly treat '&&' in the string literal as beginning of the inline comment. A workaround is to separeate '&&' characters.
lcTxt= "&" + "&"
>lcTxt = "!!!#&" + "&"
>and so on
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