Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TEXT ENDTEXT and code block logic
Message
 
 
To
25/06/2007 14:50:26
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01235422
Message ID:
01235433
Views:
18
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform