export

Jeff Harrison Jeff.Harrison at Epixweb.com
Fri Apr 30 05:50:59 PDT 2004


Steve Waters wrote:
> 
> Hello,
> I am writing a export file that looks like this,
> 
>   export ascii file=file.txt r=\n f=, o=" c="    
>  
>   file(1)=1    'part number
>   file(2)=2    'description  
> 
> With the result of
> 
>  "1234","o-ring"
>  "3456","nail" 
> 
> Is there a way to get the Part Number and Description 
> to lead the data like this?
> 
>  "part number","description"
>  "1234","o-ring"
>  "3456","nail" 
> 
> Thanks for any help,
> Steve
> 

Sure.  In fact my JHExport program will write all the code for you.  You
just tell it what fields and file to export.

again
Then: export ascii file=file.txt r=\n f=, o=" c=" 
If: fl eq ""
Then: gosub hdr; goto again 
Then: file(1)=1; file(2)=2
Then: end

hdr
Then: fl(1,*,g)="Y"; fil(1)="part number"; file(2)="description"; return

Jeff Harrison
jeff.harrison at epixweb.com

Author of JHExport and JHImport - The fastest and easiest ways to generate
code for filepro exports and imports.  Demos available upon request.


More information about the Filepro-list mailing list