Unix import of a DOS spreadsheet...

John Esak john at valar.com
Sat Sep 4 21:16:09 PDT 2010


Okay, then why didn't the use of r=10 or r=13 work for Mike?

John
 

> -----Original Message-----
> From: Kenneth Brody [mailto:kenbrody at spamcop.net] 
> Sent: Sunday, September 05, 2010 12:07 AM
> To: john at valar.com
> Cc: filepro-list at lists.celestial.com
> Subject: Re: Unix import of a DOS spreadsheet...
> 
> On 9/4/2010 8:19 PM, John Esak wrote:
> [...]
> > it do that? I know that the r= is limited only to very 
> specific character
> > representations and chr("10") or chr("13) or even r=10 or 
> r=13 (as you
> > showed them) are not allowed. So why do you suppose the 
> book shows them as
> [...]
> 
> The F=, R=, O=, and C= values on the IMPORT/EXPORT lines can 
> take a value 
> representing a single character.  You can use the character 
> itself, such as:
> 
>      f=,
> 
> Or one of a set of backslash codes, as in:
> 
>      r=\n
> 
> The codes are "\t" for TAB, "\n" for newline, "\r" for 
> carriage return, and 
> "\f" for formfeed.  (The "newline" being the system-dependent 
> end-of-line 
> character or characters.)
> 
> Or "^x" to represent a control character, such as:
> 
>      o=^R
> 
> Or, finally, it can be the decimal value of the character you 
> wish to use:
> 
>      f=32
> 
> Note that these are all the same, given the ASCII character set:
> 
>      \t  ^I  9
>      \n  ^J  10
>      \f  ^L  12
>      \r  ^M  13
> 
> -- 
> Kenneth Brody
> 



More information about the Filepro-list mailing list