Android Question Clear text from a label

Duncan williamson

Member
Licensed User
Longtime User
Wondering if someone can point me in the right direction, my app has a label which is filled with a large text string from a string variable when a button is clicked. the string varies in length from a few words to several sentences. on the button click I set label1.text = "" and then label1.text = var.
This works well until i click the button a second time and the string loads over the top of what is already in the label from the first button click.
can anyone tell me how I can clear label.text prior to loading the new text string ?
 
Top