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:
00812212
Views:
16
David,

I belive that '&&' goes back to the dbase II. Anyway, I tested it in Fox 2.6a before posting and there's excerpt from FoxPro 2.6 help
Note| * | && Commands

Indicate the beginning of a non-executing comment line in a program file.

Syntax

Note  	[<comments>]
or
* 	[<comments>]
or
&&	[<comments>] 
>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform