export question

Nancy Palmquist nlp at vss3.com
Sun Oct 31 05:45:10 PST 2004


Roger Cornelius wrote:

> dreport v 4.8.10D4 on SCO OSR5.0.7
> 
> Is there a way to export more than one record for each filepro record
> selected in output processing?  The manual says no.
> 
> E.g.:
	THEN: count="0"	
>  wrtit   If: 
>        Then: export WORD exp=(of)
>          If:count eq "1"
>        Then: exp(1) = 1
>          If:count eq "1"
>        Then: exp(2) = 2
>          If:count eq "2"
>        Then: exp(1) = 3
>          If:count eq "2"
>        Then: exp(2) = 4
>          If:
>        Then: write exp;count=count"1";goto wrtit    ' write second export rec
>          If: 
>        Then: end
> 
> 

This would work to write more than one record.  This is the method I use 
and you can write as many records as you want.  If you close the export, 
you can then open another with different parameters also. I would change 
it as follows:

declare first, second
exp(1)=first;exp(2)=second;gosub wrtit
exp(1)=first;exp(2)=second;gosub wrtit
end
wrtit:   export WORD exp=(of)
	exp(1)=first;exp(2)=second;write;first="";second="";return

> Currently, I'm using multiple print statements to accomplish this and
> then running sed on the result to strip ^M and blank lines.


-- 
Nancy Palmquist
Virtual Software Systems
PHONE: (412) 835-9417			Web site:  http://www.vss3.com



More information about the Filepro-list mailing list