Left-justify (was Re: Export fixed length)

Kenneth Brody kenbrody at spamcop.net
Thu Aug 11 13:09:25 PDT 2011


On 8/11/2011 3:31 PM, scooter6 at gmail.com wrote:
>    FWIW - I created a dummy file and defined 2 fields as lj and one as 0rjdot
>    The left justify works when adding a record, but the 0rjdot does not.

Well, it "works" in that it will right-justify and zero-fill.  However, 
since your 0rjdot edit is not what I posted, it won't removed embedded 
decimal points.

>    I created an export out of this test file, and it holds the left justify
> field just fine??

As I would expect.

>    Perhaps for some reason if assigned to a variable it doesn't handle it
> properly.

Nope.

>    Keeping in mind, in the 'main' file I'm using, the actual 'real' field I'm
> using is 15,#
>    Perhaps it doesn't handle assigning this to a dummy field with that edit??

Doesn't matter.

>    Kind of stumped on this one.....
>
>    The 0rjdot doesn't work -- it allows me to enter any number, but it DOES
> zero fill and right justify, it just doesn't remove the decimal if I put
>    one in it.
>    If I put 455, when leaving the field it changes it to  00000455
>    If I put 455.25, it changes it to 00455.25

Correct.  Use the edit I posted, not the mangled version you entered.

>    So apparently it doesn't acknowledge the 'remove decimal' part of the
> edit?

It does, if you write the edit correctly.  :-)

[...]

-- 
Kenneth Brody


More information about the Filepro-list mailing list