Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TEXT command issue
Message
 
 
To
06/06/2005 20:02:47
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01020698
Message ID:
01020723
Views:
23
Mike,

Try
TEXT TO lcSvg TEXTMERGE NOSHOW PRETEXT 5 FLAGS 1
<?xml version="1.0" standalone="yes"?>
.
blah
blah
blah
.
ENDTEXT
STRTOFILE(lcSVG, lcSVGFile)
>I have the following code that tries to output text to a file:
>
>
>STORE FCREATE(lcSVGFile) TO _TEXT
>SET TEXTMERGE ON NOSHOW
>TEXT PRETEXT 1+4
><?xml version="1.0" standalone="yes"?>
>.
>blah
>blah
>blah
>.
>ENDTEXT
>=FCLOSE(_TEXT)
>
>
>The problem that I have is that the first line in the output file is always blank! The line starting with "...xml verison=..." is always line 2. How do I get it to be line 1, i.e. how do I eliminate the leading blank line. I've tried PRETEXT 1+2+4 too and it does not work.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform