<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Fellow filepro users,<br>
    <br>
    I have twisted this around a few times and do not see what I am
    missing.&nbsp; Windows - filepro v 5.0<br>
    fp Docs reads as follows:<br>
    <b><br>
    </b>
    <p style="margin-bottom: 2.5pt;"><b><font style="">Structured ASCII
          (Fixed length ASCII)</font></b></p>
    <p><b><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
          0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Then: EXPORT ASCII name -X</font></b></p>
    <p><b><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
          0);">Creates an ASCII file called "name" in structured format.</font></b></p>
    <p><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
        0);"><b>This is a very useful export format. The entire field is
          placed in the export file. No field separators are required
          because each field takes up exactly its length in characters
          whether there is data in the field or not. The record
          delimiter is a new line by default. This format is becoming
          more and more of a standard means for exchanging files between
          systems and applications.</b><br>
      </font></p>
    <p><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
        0);">It clearly says it should use a NEW LINE delimiter which
        should be CR/LF on windows.<br>
      </font></p>
    <p><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
        0);">Code looks like this:<br>
        330&nbsp; -------&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -<br>
        wrtxml &#9668; If:<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then: export ascii myxml=(expname{"") -x<br>
        331&nbsp; -------&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#9668; If:<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then: myxml(1)=myline{"" ;write myxml<br>
        332&nbsp; -------&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -<br>
      </font></p>
    <p><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
        0);"><br>
        If myline contains just the data I want written, I get NO new
        line, I do not get 0d or 0d/0a appended<br>
      </font></p>
    <p><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
        0);">So I tried adding it to myline<br>
      </font></p>
    <p><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
        0);">myxml(1)=myline{chr("13"){chr("10")<br>
      </font></p>
    <p><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
        0);">Then I get at the end of each line: 0d 0a 0d&nbsp; - It seems to
        want to add a 0d to my codes.<br>
      </font></p>
    <p><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
        0);">So I tried adding just chr("13") and then it added 0d 0a so
        I ended up with 0d 0d 0a<br>
      </font></p>
    <p><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
        0);">What wacky thing is going on?&nbsp; Anyone got a suggestion.<br>
      </font></p>
    <p><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
        0);">Well I finally found what it needed.&nbsp; So I guess this
        turned out to be a cautionary tale not a request for help after
        all.<br>
      </font></p>
    <p><font style="font-family: 'Times New Roman'; color: rgb(1, 1,
        0);">330&nbsp; -------&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -<br>
        wrtxml &#9668; If:<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then: export ascii myxml=(expname{"") -x r=\n<br>
        331&nbsp; -------&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#9668; If:<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then: myxml(1)=myline{chr("10") ;write myxml<br>
        332&nbsp; -------&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp; -</font></p>
    This caused my file to end up with CR/LF (0d 0a) just what was
    required.&nbsp; What weird logic is causing this but here it is if anyone
    else is looking for a solution.<br>
    <br>
    Nancy<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Nancy Palmquist         MOS &amp; filePro Training Available
Virtual Software Systems    Web Based Training and Consulting   
PHONE: (412) 835-9417           Web site:  <a class="moz-txt-link-freetext" href="http://www.vss3.com">http://www.vss3.com</a> 
</pre>
  </body>
</html>