Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HowTo: Multi-line Comments in VFP (Take 2)
Message
De
10/11/2000 10:33:30
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00439900
Message ID:
00440205
Vues:
56
>I find this useful for writing descriptive comments, not for disabling a block of code by commenting it out. Comment/Uncomment certainly works better for the latter. What I don't like about Comment/Uncomment is that it takes two steps and doesn't respect indentation - if you comment a block of indented code the comment marks are placed at the left margin regardless of indentation, which disrupts the readability of the code. With the */ technique I can write an indented multi-line comment easily in one step. For example
IF .T.
>   IF .T.
>      */ This is a multi-line comment ;
>         that you can use to describe what's ;
>         happening in this nested block of code. */
>      WAIT WINDOW NOWAIT "Foo"
>   ENDIF
>ENDIF
If you use Beautify and indent comments, you can have it indented the way you want it...
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform