>>>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?
If .F. is there to make sure that the code is never run. The Text-endtext syntax is used because everything between text and endtext is treated as text, so VFP will not try to compile it, which would create an error.
If the if .f. confuse you, you could as well have written
Text to yourneverusedvariable
Blah blah blah
Endtext
The only difference is that in this case you would spend some resources for a memvar you don't need.