EditText1.Text = EditText1.Text & variable, correct syntax?

khos

Member
Licensed User
Longtime User
Hi everyone,

I am trying to use the following syntax:

EditText1.Text = EditText1.Text & somestringvariable

Is this the correct way/syntax? I want to programatically add more text to an editbox like this..

Thanks in advance.
Kim
 

lagore

Active Member
Licensed User
Longtime User
Hi,
That is the correct way, if you are unsure try it on your device, set break points and watch the de-bugger you can watch all of the values change, its the best way to learn.
 
Upvote 0

pluton

Active Member
Licensed User
Longtime User
Or you can always add ToastMessage like this and check

B4X:
ToastMessageShow(EditText1.Text & somestringvariable,False)
 
Upvote 0

khos

Member
Licensed User
Longtime User
Hi folks, thanks for your replies. I am using the debugger but I want to append text to an editbox in a for loop each time adding more.. wasn't sure my statement would do it :)
 
Upvote 0
Top