export fixed length problem
Kenneth Brody
kenbrody at bestweb.net
Wed Nov 17 12:21:54 PST 2004
Dennis Malen wrote:
>
> Ken,
>
> 1. I am only exporting one filed because that is how the filePro list
> suggested I do it. It was also your suggestion to use the chr("10"). It
> works great, except for the first field. You seem to be satisfied with the
> logic that all other fields hold the spaces but you are not concerned with
> the first field and seem to accept that. Why, I don't know.
You are only exporting one field. There are no "other fields" involved.
The one field you are exporting starts with some spaces (which are stripped)
and ends with a newline (hence there are no trailing spaces to strip).
> 2. Trailing spaces are not being stripped on subsequent fields on the same
> line. Again, it is only the first field. If I add xx(5) after a(10) then the
> 5 empty spaces in xx are retained. If I put it in front of a(10) and cause
> the xx to be the first field, it is not maintained.
Again, you are only exporting one field. There are no "subsequent fields".
> 3. I can not use the -X with -a.
You can with the 5.0.14 update.
> 4. You say to left justify. Whaaalaaa! You finally got it. That's the
> question I have been asking. How do I do it???????????
Rather than:
a(10,*) = r
use:
a(10,*) = "" { r
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap at gmail.com>
More information about the Filepro-list
mailing list