Booth,
Thank you for that - and I especially like the part
about keeping our imagination in focus.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Tuesday, August 13, 2013 9:53 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Left justify numeric field
D wString s 30 varying
nField = -123456.78;
wString = 'You owe: ' + %editc(nField: 'N');
dsply wString;
wString = 'You owe: ' + %char(nField);
Here are the results of the above code:
DSPLY You owe: -123,456.78
DSPLY You owe: -123456.78
I like commas, and I also like %editw() for special cases. I believe we are limited with what we can provide users but I do want to at least give em what we got, especially when it is so easy. Besides, if this really was about a money-owed figure, I would probably prefer "CR" to a minus sign.
errr.... I like scroll bars too. And check boxes & radio buttons. They are easy to program and easier to use. They are intuitive. Yes, green screen is going away but until it does, why not use what we've got?
(I believe I am about to learn something I should already know. But hey, I will learn from Scott any day, and thank him for it.
On 8/13/2013 5:19 PM, Scott Klement wrote:
Do you have a reason that you prefer %trim(%editc(field:'N')) over
%char()? %char seems a lot simpler and more elegant to me.... but
maybe there's something else to edit code N that I'm missing...
As an Amazon Associate we earn from qualifying purchases.