joaquinortiz Active Member Licensed User Longtime User May 18, 2020 #1 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!
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!
Erel B4X founder Staff member Licensed User Longtime User May 18, 2020 #2 B4X: Dim i As Int = "3434" If IsNumber(EditText1.Text) Then Dim x As Double = EditText1.Text End If Upvote 0
joaquinortiz Active Member Licensed User Longtime User May 18, 2020 #3 Erel said: B4X: Dim i As Int = "3434" If IsNumber(EditText1.Text) Then Dim x As Double = EditText1.Text End If Click to expand... 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
Erel said: B4X: Dim i As Int = "3434" If IsNumber(EditText1.Text) Then Dim x As Double = EditText1.Text End If Click to expand... 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!
Erel B4X founder Staff member Licensed User Longtime User May 19, 2020 #4 You don't need to use Double. You can use any numeric type you like. Upvote 0