export question

Jeff Harrison jeffaharrison at yahoo.com
Fri Oct 29 14:57:41 PDT 2004


--- Roger Cornelius <rac at custom-mobility.com> 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.:
>          If: 
>        Then: export WORD exp=(of)
>          If:
>        Then: 
>          If:
>        Then: exp(2) = 2
>          If:
>        Then: write exp    ' write first export rec
>          If:
>        Then: exp(1) = 3
>          If:
>        Then: exp(2) = 4
>          If:
>        Then: write exp    ' write second export rec
>          If: 
>        Then: end
> 
> 
> Currently, I'm using multiple print statements to
> accomplish this and
> then running sed on the result to strip ^M and blank
> lines.
> -- 

I'm not sure what you mean by multiple print
statements - I guess you are using the print output
then?  

You certainly can export a selected record any number
of times.  I have seen it done the way you show above,
but I don't use that approach.  Here is how I would do
it:

::ct="1":
loop:::
:ct gt "2":goto fini:
::export WORD exp=(of):
::exp(1)=1; exp(2)=2; write exp:
::ct=ct+"1"; goto loop:
fini::end:

Good Luck.

Jeff Harrison
jeffaharrison at yahoo.com

---------------------------------------------------------
Author of JHImport and JHExport.  The fastest and
easiest
way to create code for filePro Imports and
Exports.
---------------------------------------------------------


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Filepro-list mailing list