khosrwb Active Member Licensed User Longtime User Oct 9, 2015 #1 I need to change string ((number)) to int ((number)) . it's possible?
M Mahares Expert Licensed User Longtime User Oct 9, 2015 #2 Here is a link that will do exactly what you want to accomplish: https://www.b4x.com/android/forum/threads/convert-string-to-integer-or-float.46309/#content Upvote 0
Here is a link that will do exactly what you want to accomplish: https://www.b4x.com/android/forum/threads/convert-string-to-integer-or-float.46309/#content
klaus Expert Licensed User Longtime User Oct 9, 2015 #3 Simply: B4X: Dim i As Int Dim s = "100" As String If IsNumber(s) Then 'checks if the string is a number. i = s Else i = 0 'or something else End If Upvote 0
Simply: B4X: Dim i As Int Dim s = "100" As String If IsNumber(s) Then 'checks if the string is a number. i = s Else i = 0 'or something else End If