How do you delete last inserted data on a label?

Hi everyone, My app using buttons to add logs in to label. It is seperated using "\n" thing.
I'm trying to make a button that removes the last log.
Here is an example of my code.
Screenshot_1

I searched other topics on the forum but nothing worked for my code.
Could you like to help me please ?

You are putting new items at the top of the text, so to reduce the line count:

  • set global log_list to Split Label2.Text at \n
  • While length of list (log_list) > 5 (or whatever)
    • remove item (length of list (log_list) from log_list
  • Set Label2.Text to JOIN With Separator \n (log_list)

I had this in stock, but its log is reverse order. Same idea, though.

2 Likes

Dude, like 2 hours i've been working on it. It is fixed. Thank you very much.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.