Android Question How to convert a string or Edittext value to Integer or Long.

joaquinortiz

Active Member
Licensed User
Longtime User
Sorry fellows, I don't see in the manual a function to convert a string to an integer. Like in Vb.net Cint(stringValue)

Thanks in advance!
 

joaquinortiz

Active Member
Licensed User
Longtime User
B4X:
Dim i As Int = "3434"
If IsNumber(EditText1.Text) Then
Dim x As Double = EditText1.Text
End If

Thanks Erel. I'm using B4XFloatTextField, instead of EditText. It works. hehehehe, a strange way to convert string to numeric values......ehehe thanks!....I would never imagine that I would have to use a double data type.....hehehehe.

Gracias amigo!
 
Upvote 0
Top