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
 
Upvote 0

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.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. It is covered in the programming guide.
2. It is covered in the video tutorials.
3. It appears as a hint:

SS-2019-02-06_17.12.18.png
 
Upvote 0
Top