Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this normal behavior...
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00237931
Message ID:
00237984
Vues:
11
>... I inherited a program that was not working properly, and after some digging around I found a long commented line, which extended beyond the right edge of the screen, which had a semi-colon at the end with an uncommented line of code on the next line. The problem was that the semi-colon continued the comment to the next line. Is that normal behavior? I know that semi-colon extends a line to the next physical line, but I didn't know that included commented lines too. So, in the following...
>
>WAIT WINDOW "First wait"
>* this is a comment;
>WAIT WINDOW "Second wait"
>
>... the second WAIT does not run.


... to add to the other replies, the semi-colon is a line continuation indicator which means the next line is a continuation of that line. Since the first line is a comment, the second line is a continuation of the comment.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform