Android Question Format a text

sultan87

Active Member
Licensed User
Longtime User
Hello
I want to format a field
example
for i = 1 to 15
= 1 if text = "01" i
if = 9 text = "09" i
if = 13 text = "13" i

something like in vb text = Format (i, "00")

Best regards
 
This is to follow up with Steve's tip:
Code: Copy
For i=1 To 15
    Log(FormatNumber(i, 2, 0 ))
Next

Sub FormatNumber(x As Int, MinInt As Int, MaxFrac As Int ) As String
   Return NumberFormat(x,MinInt,MaxFrac)
End Sub
 
Upvote 0
Back
Top