Loop through fields in an import file?
Mike Schwartz
mschw at athenet.net
Wed Feb 9 07:47:05 PST 2011
>
> I was programming an export to a csv file for an array with 48 elements.
Dim
> array(48) One cannot do
>
> Export word comm=w:\ccsv_files\foobar.csv
>
> loop:ct le "48" Comm(ct)=array[ct];ct=ct+"1";GOTO loop
>
> This would have made programming this output much easier as my program
> has 7 separate arrays that need to be written out.
>
> What I would suggest is that you create 2 arrays, read in your data to the
first
> array and then overlay the second array to your lookup file and use the
> above method to post in the data.
>
> I don't think there is an easy way to do this.
>
>
> Richard Kreiss
> GCC Consulting
> rkreiss at gccconsulting.net
>
I tried to dimension an array against the import, but filePro doesn't
allow dimensioning an array against an import file, either.
I don't think I can use "copy" or "copyto" with an imported file,
either.
Mike
More information about the Filepro-list
mailing list