<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I believe this would work. (see below)<br>
    <br>
    If you still have issues, call me at (713) 931-9938.<br>
    <br>
    Richard D. Williams<br>
    <br>
    <br>
    <br>
    <font face="Courier New, Courier, monospace">  1  -------   -   -  
      -   -   -   -   -   -   -   -   -   -   -   -   -   -<br>
               If:<br>
             Then: 'once your array is fill or you are done filling it<br>
        2  -------   -   -   -   -   -   -   -   -   -   -   -   -   -  
      -   -   -<br>
               If:<br>
             Then: n(3,.0)="";p(3,.0)="1";fa(60)="";x(1)="";gosub wrtcsv<br>
        3  -------   -   -   -   -   -   -   -   -   -   -   -   -   -  
      -   -   -<br>
               If:<br>
             Then: clear ecw;'goto back to start again<br>
        4  -------   -   -   -   -   -   -   -   -   -   -   -   -   -  
      -   -   -<br>
      wrtcsv   If:<br>
             Then: n=n+"1"<br>
        5  -------   -   -   -   -   -   -   -   -   -   -   -   -   -  
      -   -   -<br>
               If: n gt "50"<br>
             Then: n="";close mgr;return<br>
        6  -------   -   -   -   -   -   -   -   -   -   -   -   -   -  
      -   -   -<br>
               If: ecw(n) eq ""<br>
             Then: goto wrtcsv<br>
        7  -------   -   -   -   -   -   -   -   -   -   -   -   -   -  
      -   -   -<br>
               If: fa eq ""<br>
             Then: fa="/tmp/export_csv_"{p{".csv"<br>
        8  -------   -   -   -   -   -   -   -   -   -   -   -   -   -  
      -   -   -<br>
      again    If:<br>
             Then: export WORD mgr = (fa)<br>
        9  -------   -   -   -   -   -   -   -   -   -   -   -   -   -  
      -   -   -<br>
               If: x eq ""                'make header - optional<br>
             Then: mgr(1)="HEADER";x="x";goto again<br>
       10  -------   -   -   -   -   -   -   -   -   -   -   -   -   -  
      -   -   -<br>
               If:<br>
             Then: mgr(1)=ecw(n);goto wrtcsv<br>
       11  -------   -   -   -   -   -   -   -   -   -   -   -   -   -  
      -   -   -</font><br>
    <br>
    <div class="moz-cite-prefix">On 9/27/2018 4:34 PM, Tim OBrien via
      Filepro-list wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1538084088.03922010@mail.b-e-s-t.com">
      <pre wrap="">
I have an array dim ecw(100)(50,*) that collects data from a text file of forms.
What would be the syntax to export all the fields in the given array in csv format , reset the array (clear ecw) and then loop each time another record needs output.
Thanks
Tim OBrien
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <a class="moz-txt-link-rfc2396E" href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20180927/cbf547ee/attachment.html"><http://mailman.celestial.com/pipermail/filepro-list/attachments/20180927/cbf547ee/attachment.html></a>
_______________________________________________
Filepro-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a>
Subscribe/Unsubscribe/Subscription Changes
<a class="moz-txt-link-freetext" href="http://mailman.celestial.com/mailman/listinfo/filepro-list">http://mailman.celestial.com/mailman/listinfo/filepro-list</a>

---
This email has been checked for viruses by AVG.
<a class="moz-txt-link-freetext" href="https://www.avg.com">https://www.avg.com</a>


</pre>
    </blockquote>
    <br>
  </body>
</html>