Jump to content
UBot Underground

What's The Best Way To Keep Something And Clear The Rest?


Recommended Posts

Hi,

 

Many times I need to keep one or more variable(s), list(s) or a table(s) and get rid of the rest using clear all data command.

 

What would be the best solution to do this? How do you do this usually?

 

For example, keep user input in UIs (assigned to variables) and clear everything else.

 

Thanks

Link to post
Share on other sites

First.  In cases I like that I never use Clear All.

 

I always add my variables that I want to preserve in a single cycle Loop at the beginning.  At some point

when I do need to clear most of my variables I will copy that Loop and place inside of a button for my UI

and then I will take out or modify what I want that button to do.  I was doing this before the Clear All was

added to UBot.

 

Buddy

Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...