[RPG]How to avoid Zero supress

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
Posts: 259
Joined: Tue Feb 19, 2013 1:18 am

[RPG]How to avoid Zero supress

Post by MegumiSawada » Wed Feb 20, 2019 8:05 pm


Our customer would like to set a limitation for a textbox element to accept only numbers.
I have acheived it with the following code:

Code: Select all

TYPE: TEXTBOX                          
DATATYPE : NUMBER                      
However, it will perform zero supress automatically. So 0123 will become 123.
The customer would like to avoid this zero supress.
Is there any way to avoid it so that they can have a number with leading zero?

Best Regards,
Megumi Sawada

Posts: 104
Joined: Tue Jan 10, 2017 11:26 pm

Re: [RPG]How to avoid Zero supress

Post by jasonzhou » Sun Feb 24, 2019 9:17 pm

Hi Megumi,

Currently there is no way to keep the leading zero when DATATYPE is Number.

We can add a new property to allow the leading zero in number. If it sounds ok for you, can you please submit an enhancement request to LANSA support?


Post Reply