How to convert EditText.Text to a number

yuhong

Member
Licensed User
Longtime User
I want write EditText.Text as Number to MAP.

b4a has a Function?

I don't use:
Dim i as int
i=editText1.Text
map.add('num')=i
 

khosrwb

Active Member
Licensed User
Longtime User
excuseme
I don't underestand
how to convert edittext.text to a number
 

Attachments

  • convert string to int.zip
    5.6 KB · Views: 457
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
excuseme
I don't underestand
how to convert edittext.text to a number
dim s as int
s = edittext.text

or add Erel's suggested sub to your project and call it passing the string
 
Upvote 0
Top