Export Syntax
Kenneth Brody
kenbrody at bestweb.net
Fri Jul 27 09:02:39 PDT 2007
Quoting Scott Walker (Fri, 27 Jul 2007 11:07:55 -0400):
> I am exporting an ascii file on a SCO Unix system. The file will
> actually be used on a windows system so I want the record separator to
> be a CR/LF.
>
> I'm using:
>
> export ascii banner=(mv) r=chr("10")&chr("13") f=, o=" c="
>
> but that bombs on syntax check.
>
> How do I tell fp to use CR/LF as record separator?
You can't have a multi-character separator, as you have seen.
My recomendation would be to use "r=\n" to get the Unix end-of-line
character, and then use a text-mode transfer when copying it over to
Windows. This will convert LF to CRLF for you.
If this is not an option, then use the "xtod" utility (I believe
that is what SCO calls it) to convert the file to CRLF.
Also, is the conversion even required? Many programs on Windows
will work just with with LF instead of CRLF.
Finally, if no other option is available, then your last resort
might be to force the CR into the last field of the export, as in:
output[37] = field & chr("13")
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list