exporting fieldname and fieldlenght
Jeff Harrison
jeffaharrison at yahoo.com
Fri Apr 22 11:10:17 PDT 2005
--- Enrique Arredondo <henry at vegena.net> wrote:
> Hi ,
>
> What syntax should I need to use so that this works
> ? Right now it doesn't
> like the rr dummy inside the functions.
>
>
> loop if :
> then: rr=rr+"1"
> if : rr gt "166"
> then: end
> if :
> then: saverec
> if :
> then: filex(1)=fieldname(rr){"~"{fieldlen(rr)
> if :
> then: close filex;goto loop
>
> saverec if :
> then: export ascii filex="fields.txt" r=\n
> if :
> then: return
>
>
>
I see a few problems here. In this case your
fieldname and fieldlen functions should read as
follows:
fieldname(-,rr)
fieldlen(-,rr)
Also, you should not be closing the export within your
loop. Close it after all of your exporting has been
completed (before the "end"). Also, you missed the
gosub statement before "saverec", and you should not
have the export file name in quotes.
Good Luck!
Jeff Harrison
jeffaharrison at yahoo.com
Author of JHExport and JHImport. The easiest and
fastest way to generate code for filePro exports and
imports.
__________________________________________________
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