Make an exception under ClearGlobals()


Recommended Posts

I would like to use ClearGlobals() while keeping some already defined variables, which are numbers and strings.

I guess I could write them to an external file and read it after the ClearGlobals() command, but I'm curious if there is a cheaper way which I haven't figured yet?

Thank you in advance!

Link to comment
Share on other sites

You could use Test channels instead of global variables for these values.  Set the history to 1.  Use D to A for numbers, and String for strings.  These aren't affected by ClearGlobals().   It won't work with objects, and won't work quite the same with arrays, but for scalar numbers and strings, it is probably the easiest.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.