Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Line of code that works yet shouldn't
Message
From
05/07/2007 06:24:06
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01237329
Message ID:
01237867
Views:
15
As others have already said this is because syntax highlighting parses # compiler parser.

You can use it the other way around and comment a multiline command with a single * in front of the first line only...
* select fields;
from table;
into cursor result
In VFP9 all lines are highlighted green, in VFP7 only the first but still this is interpreted as a comment only.

I assume the compiler first will remove any ;+whitespace+crlf and handle only unconcatenated lines while the syntax highlighter parses lines as they are.

Bye, Olaf.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform