Fw: Export file and the use of Append -a

Dennis Malen dmalen at malen.com
Mon Oct 18 13:41:06 PDT 2004


Thank's Bob,

The correct answer is to use chr("10") and not "\n".

It works great!!!!

Thanks again for reconfirming how powerful and versatile filePro really is.

Dennis Malen
516.479.5912

----- Original Message -----
From: "Bob Stockler" <bob at trebor.iglou.com>
To: <filepro-list at lists.celestial.com>
Sent: Monday, October 18, 2004 4:38 PM
Subject: Re: Fw: Export file and the use of Append -a


> On Mon, Oct 18, 2004 at 03:23:36PM -0400, Dennis Malen wrote:
> | Still have the problem of the append -a with fixed length. I am able to
> | append but it does not create a new line for each new append.
> |
> | pn="/tmp/rnx/rnx"{ex{xlate(@td,"/",""){".wp"
> |
> | export ascii rnf=(pn) -a
> |
> | a(10)=@rn;b(9)=6;c(40)=ww;d(40)=27;e(40)="";f(40)=28;g(2)=29;h(10)=13
> |
> | rnf(1)=a&b&c&d&e&f&g&h;write rnf;close rnf
> |
> | Do I need one of the following after &h above?:
> | 1.&"\n" or
> | 2.&chr("10")
>
> You need to use your option #2 - add &chr{"10").
>
> | If anyone can confirm if this is what is to be done to add a new line
please
> | let me know.
> |
> | Ken Brody seemed to say that filepro takes care of the new line if you
use
> | an append -a and that nothing more is necessary. That does not seem to
be
> | the case.
>
> Ken was correcting my incorrect instructions to you where
> I said to end the assignment with & "\n".  He corrected
> that to be end each line to be exported with:
>
>    & chr("10")
>
> What he further said was that filePro takes care of adding
> (or not adding) a carriage return before the linefeed,
> according to the system it's being run on.
>
> Bob
>
> --
> Bob Stockler - bob at trebor.iglou.com
> Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User
Menus.
> Fully functional (time-limited) demos available by email request (specify
OS).
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>



More information about the Filepro-list mailing list