Hoyer Posted May 9, 2020 Share Posted May 9, 2020 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! Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted May 9, 2020 Share Posted May 9, 2020 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.