Edit Mask

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
John
Posts: 24
Joined: Thu Aug 10, 2017 3:21 pm

Edit Mask

Post 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 4244 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?
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Edit Mask

Post 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
Art Tostaine
Post Reply