Android Question How to format number with leading zeroes?

Marlou Fin

Member
Licensed User
Hi Guys,

Do we have existing function in b4a to format number with leading zeroes? The way we did in visual basic

format("1","000000#")

Thanks,
Maloyski
 

Marlou Fin

Member
Licensed User
Hi Erel,

Can you give some sample code? The input example is 25 and the expected output will be 00025. I cannot figured it out in the document for numberformat2.

Thanks,
Marlou
 

Marlou Fin

Member
Licensed User
Thanks Erel, it's working now. Is there any chance that this can added in the sample document or in the hint in the code? This is little help.
 
Top