On WFS, can you add extra zeros, like when the Step count is 50 Steps, I need it do display 00050, same with Battery %, if battery is 24% then it must read 024%
Thank you
On WFS, can you add extra zeros, like when the Step count is 50 Steps, I need it do display 00050, same with Battery %, if battery is 24% then it must read 024%
Thank you
Hi Johan,
You will need to do something like this for your text field
00[SC]
Now if you want padded numbers you are going to have to do some if else tag
([SC]<100) ? 00[SC] : 0[SC] and nest this for larger padding.
I’ve requested padded numbers for a feature enhancement.
Ron
Samsung Developer Relations
check it ([SC] < 10? 0: “”)([SC] < 100? 0: “”)([SC] < 1000? 0: “”)([SC] < 10000? 0: “”)[SC]
Hi Ron
I see 3 updates since my Padded Zeros on Steps request
I have read the Release notices, but i haven’t seen them add this feature
Am I wrong and if so, how can i add them
regards
Expression from @Reyson is working fine. Theres no need for an update.
Just use
([SC] < 10? 0: "")([SC] < 100? 0: "")([SC] < 1000? 0: "")([SC] < 10000? 0: "")[SC]
Thank you so so much
It works great
Comair Disclaimer: The content of this email is confidential and only intended for the recipient(s) specified in this message. If you have received this message by mistake, to prevent a repetition of the error please notify the sender there-of and then delete the erroneous email. Messages received in error may not be shared with any third party, without the written consent of the sender.