export question

Roger Cornelius rac at custom-mobility.com
Mon Nov 1 12:04:17 PST 2004


On Sun Oct 31 08:45, Nancy Palmquist wrote:
> 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

This is contrary to what Ken and Jeff say in previous replies where they
stated the "export" statement should precede the field assignements.
-- 
Roger Cornelius            rac at custom-mobility.com


More information about the Filepro-list mailing list