I am <sometimes> getting extraneous spaces in a file created by set alternate on in Fox 9. I don't get the extra spaces in Fox 6 or dBase IV.
Here's the code:
------------------------------------------------------------
Set ALTERNATE TO foo.txt
Set Alternate ON
m_text="Here is some text"
?m_text
??" on "
??DATE()
??"by "
??alltrim(VERSION())
?"**********************"
?"<@SECTION TITLE:>"
??"COUNTY SCHOOL DISTRICTS"
Set Alternate OFF
Set Alternate TO
Modify File FOO.TXT NOWAIT
-----------------------------------------------------------
here's the result:
-----------------------------------------------
Here is some text on 11/30/2005 by Visual FoxPro 09.00.0000.2412 for Windows
**********************
<@SECTION TITLE:> COUNTY SCHOOL DISTRICTS
-------------------------------------------------
Note that in the first line of output, ?? works correctly. In the second, I get extraneous spaces between the ">" (a Pagemaker formatting directive), and "COUNTY". Note also the LF/CR at the start, the trailing spaces after "DISTRICTS" and the odd character (eof mark?) at the end.
Can you offer any guidance on controlling text output in Fox 9?
thanks
Here's the code:
------------------------------------------------------------
Set ALTERNATE TO foo.txt
Set Alternate ON
m_text="Here is some text"
?m_text
??" on "
??DATE()
??"by "
??alltrim(VERSION())
?"**********************"
?"<@SECTION TITLE:>"
??"COUNTY SCHOOL DISTRICTS"
Set Alternate OFF
Set Alternate TO
Modify File FOO.TXT NOWAIT
-----------------------------------------------------------
here's the result:
-----------------------------------------------
Here is some text on 11/30/2005 by Visual FoxPro 09.00.0000.2412 for Windows
**********************
<@SECTION TITLE:> COUNTY SCHOOL DISTRICTS
-------------------------------------------------
Note that in the first line of output, ?? works correctly. In the second, I get extraneous spaces between the ">" (a Pagemaker formatting directive), and "COUNTY". Note also the LF/CR at the start, the trailing spaces after "DISTRICTS" and the odd character (eof mark?) at the end.
Can you offer any guidance on controlling text output in Fox 9?
thanks