Page 1 of 1

Formatting numbers

Posted: Sun Aug 13, 2017 12:38 am
by r-tea
In my xml code of MUI interface, I have something like this:

Code: Select all

<slider id="sl_hour" min="0" max="23" format="%02d"/><
The format of %02d means there will be two digits decimal number
including a preceding zero, if needed.
My question is how to obtain the same in .hws?

Re: Formatting numbers

Posted: Sun Aug 13, 2017 12:43 pm
by peceha
maybe this:

Code: Select all

min=4
min=FormatStr("%02d", min)

Re: Formatting numbers

Posted: Sun Aug 13, 2017 1:15 pm
by r-tea
Thanks!! It works :-)