Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TEXT ENDTEXT and code block logic
Message
 
 
À
25/06/2007 14:50:26
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01235422
Message ID:
01235433
Vues:
17
>>>This is at the top of a PRG. Anyone know what it is doing? I can't find references to TEXT ENDTEXT, and I think that the block would never be run with the IF .F. statement, but I'm not sure. Any clarity appreciated. Thanks!
>>>
>>>
>>>IF .F.
>>>   TEXT
>>>      Blah, blah, blah...
>>>   ENDTEXT
>>>ENDIF
>>>
>>
>>This is a simple way to include a lot of comments without getting any errors.
>
>Ok, but could you break it down further? What are the IF and TEXT statements doing here?

Tore is right. You can include any text within TEXT statements, so this is a clever way to write comment for the code. This code will never be executed.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform