sterlingy Active Member Licensed User Longtime User Mar 29, 2013 #1 How do I determine the length of an Int? myVar = 347 I want to use a method that would return 3 because there are three digits. -Sterling
How do I determine the length of an Int? myVar = 347 I want to use a method that would return 3 because there are three digits. -Sterling
agraham Expert Licensed User Longtime User Mar 29, 2013 #2 One simple way that imediately springs to mind, there are probably others B4X: Dim s As String Dim i As Int i = 347 s = i Msgbox(s.Length, s) Upvote 0
One simple way that imediately springs to mind, there are probably others B4X: Dim s As String Dim i As Int i = 347 s = i Msgbox(s.Length, s)
sterlingy Active Member Licensed User Longtime User Mar 29, 2013 #3 agraham said: One simple way that imediately springs to mind, there are probably others B4X: Dim s As String Dim i As Int i = 347 s = i Msgbox(s.Length, s) Click to expand... Funny that's what you suggested, because that's what I was just coding. Two great minds, one thought! Thanks anyway. -Sterling Upvote 0
agraham said: One simple way that imediately springs to mind, there are probably others B4X: Dim s As String Dim i As Int i = 347 s = i Msgbox(s.Length, s) Click to expand... Funny that's what you suggested, because that's what I was just coding. Two great minds, one thought! Thanks anyway. -Sterling