S splatt Active Member Licensed User Longtime User Jan 18, 2011 #1 Is there an equivalent to the format command from Basic4ppc? I want to ensure that numbers between 0 - 9 always display a leading zero.
Is there an equivalent to the format command from Basic4ppc? I want to ensure that numbers between 0 - 9 always display a leading zero.
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2011 #2 Yes. See NumberFormat. Upvote 0
S splatt Active Member Licensed User Longtime User Jan 18, 2011 #3 Thanks for the prompt response, once again. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 19, 2011 #4 BTW, if you haven't tried yet I recommend you to download the new B4A-HelpViewer: http://www.b4x.com/forum/basic4andr...viewer-view-search-documentation-offline.html It is useful for these cases exactly. Upvote 0
BTW, if you haven't tried yet I recommend you to download the new B4A-HelpViewer: http://www.b4x.com/forum/basic4andr...viewer-view-search-documentation-offline.html It is useful for these cases exactly.
Ricky D Well-Known Member Licensed User Longtime User Jan 11, 2012 #5 number formatting Hi. I have tried this numberformat but it doesn't work like I need. if I do NumberFormat(anumber,0,2) where anumber=0 the display is 0 I want to see it as 0.00 or 5.6 to show 5.60 How do we do that? regards, Ricky Upvote 0
number formatting Hi. I have tried this numberformat but it doesn't work like I need. if I do NumberFormat(anumber,0,2) where anumber=0 the display is 0 I want to see it as 0.00 or 5.6 to show 5.60 How do we do that? regards, Ricky
Ricky D Well-Known Member Licensed User Longtime User Jan 11, 2012 #6 found out how to do it this bit of code does it: B4X: tAmount.Text = NumberFormat2(c.TollWhere.Amount,1,2,2,False) regards, Ricky Upvote 0
found out how to do it this bit of code does it: B4X: tAmount.Text = NumberFormat2(c.TollWhere.Amount,1,2,2,False) regards, Ricky