Hoyer

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!

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now