<html>
<body>
Here is some sample code that should work, but doesn't.<br>
I want to export all the fields in a file, using an array and a looping
counter. The<br>
result is a file that has one field per record, rather than 125 fields
per record.<br>
Ideas anyone? What am I doing wrong?<br><br>
<tt>
ACTION
D E F I N E P R O C E S S I N G<br>
-------------------------------------------------------------<br>
1 ------- - -
- - - - -
- - - - -<br>
? If:<br>
Then:
fn="/appl/fpmerge/exported.csv"<br>
2 ------- - -
- - - - -
- - - - -<br>
? If:<br>
Then: ct(3,#)="1";dim
fld(125):1<br>
3 ------- - -
- - - - -
- - - - -<br>
? If:<br>
Then: export word fil=(fn)<br>
4 ------- - -
- - - - -
- - - - -<br>
again ? If: ct le "125"<br>
Then:
fil[ct]=fld(ct);ct=ct+"1";goto again<br>
5 ------- - -
- - - - -
- - - - -<br>
? If: not fil<br>
Then: end<br>
6 ------- - -
- - - - -
- - - - -<br><br>
<br>
</tt><x-sigsep><p></x-sigsep>
Jerry Crespi, Ph.D.<br>
President<br>
Allied Business Systems Inc.<br>
<i>the people systems people<br>
</i>V. (714) 963-5554 Ext 4<br>
</body>
</html>