Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Line of code that works yet shouldn't
Message
De
05/07/2007 06:24:06
 
 
À
03/07/2007 06:50:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01237329
Message ID:
01237867
Vues:
14
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform