D Duncan williamson Member Licensed User Longtime User Feb 26, 2016 #1 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 ?
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 ?
Erel B4X founder Staff member Licensed User Longtime User Feb 26, 2016 #2 You don't need to clear the text. My guess is that your code creates a new label each time. Upvote 0
D Duncan williamson Member Licensed User Longtime User Feb 26, 2016 #3 Erel said: You don't need to clear the text. My guess is that your code creates a new label each time. Click to expand... Thanks for the quick reply Erel , I will check my code and see what is happening.. Upvote 0
Erel said: You don't need to clear the text. My guess is that your code creates a new label each time. Click to expand... Thanks for the quick reply Erel , I will check my code and see what is happening..