This method should create a totally clean file for you.

Set eof off
Out filename
While....
   -- populate vstring
   Write .vstring continue  
endw
Out scr
Set eof on


Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of A.G. IJntema
Sent: Thursday, November 03, 2011 9:26 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: How do I create a very long text string

I am not sure, but what you could try:

First create a table with at least the column XXX type: VARCHAR and probably
an id 
Fill the column xxx with the necessary content

Create a report a have a look at the option: File | Print to file text Setup

The report function is a very good option if you have to create files like
EDI or XML files

I am not sure where the limits are, but you can find out


N.B. If things like a EOL characters are still added maybe it is possible
the remove them after having created the file by a special program

Tony


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Les Stark
Sent: donderdag 3 november 2011 15:02
To: RBASE-L Mailing List
Subject: [RBASE-L] - How do I create a very long text string


     I need to create a file that contains an EDI document that is a 
very long text string with no hidden markers such as EOL etc.
It could be thousands of characters long.
      I tried to construct a long variable string, OUTPUT fname ; WRITE 
.vstring; OUTPUT SCREEN... but there appears to be a 1500 character 
limit on variables.
    I tried setting EOFCHAR OFF and... OUTPUT fname APPEND; WRITE 
.vstring; OUTPUT SCREEN in a loop that wrote each piece of the string 
variable to the file.  The file looks like a single string but there is 
an invisible character imbedded after each append.

HELP... there must be a way in Rbase?


Reply via email to