Page 1 of 1

Edit Mask

Posted: Fri Aug 03, 2018 4:22 pm
by John
Hi,

If I use this statement:

#ColumnINVT65.CurrentItem.Value := '$' + #InvEqList.InvoiceValue.AsDisplayString( EditCode_N )

It produces:
lansa screenprint.jpg
lansa screenprint.jpg (11.54 KiB) Viewed 4246 times

How do I use the Mask parameter of the AsDisplayString method to have the -ve sign in front of the $ sign and with comma separators please?

Re: Edit Mask

Posted: Fri Aug 03, 2018 10:17 pm
by atostaine
I think you can use any IBM i edit words in asDisplayString. The comma seperators are part of your job description IIRC.

I'm not at my workstation but on the IBM i I would try editword('-$ . '), where the number of space after the $ is the length of your field.

https://www.ibm.com/support/knowledgece ... editwd.htm