Export ASCII -x

Jeff Harrison jeffaharrison at yahoo.com
Thu Nov 18 13:17:45 PST 2010


----- Original Message ----

> From: Nancy Palmquist <nlp at vss3.com>
> To: filePro Mailing List <filepro-list at lists.celestial.com>
> Sent: Thu, November 18, 2010 2:04:14 PM
> Subject: Export ASCII -x
> 
[snip]

> Well I finally found what it needed.  So I guess this  turned out to be a 
> cautionary tale not a request for help after  all.
> 
> 330  -------   -   -   -   -   -    -   -   -   -   -
> wrtxml ? If:
>          Then: export ascii myxml=(expname{"") -x r=\n
> 331  -------    -   -   -   -   -   -   -   -   -    -
>         ? If:
>         Then:  myxml(1)=myline{chr("10") ;write myxml
> 332  -------   -    -   -   -   -   -   -   -   -    -
> 
> This caused my file to end up with CR/LF (0d 0a) just what was 
> required.  What weird logic is causing this but here it is if anyone 
> else is looking for a solution.
> 
> Nancy

Nancy, you still needed the chr("10") even after you added the r=\n ?  I am not 
able to test this at the moment, but I would think that this would give you CR 
then CR LF (oa od oa).  If it says that the record delimiter is a new line by 
default, then it sounds like the documentation should be updated to reflect the 
fact that you need to specify the r=\n to get the newline.

Jeff Harrison
jeffaharrison at yahoo.com


      


More information about the Filepro-list mailing list