Shiny Posted December 10, 2011 Report Share Posted December 10, 2011 Hello, My script has so many variables that I cannot keep track of which variables I no longer need after deleting from the script. Can the software delete unused variables for me? Is there a way to clean up all of the variables easy? Thanks Quote Link to comment Share on other sites More sharing options...
Cory Posted December 11, 2011 Report Share Posted December 11, 2011 MEP has no cleanup facility like you describe. However it would be a cool feature. You might consider requesting it to ISS. I have something similar. I created a couple to deal with ME3 to MEP conversion. I have one that fill find every occurrence of a variables and put them in a list. I then create a list of named variables and after a little analysis I replace every . instance. If it were me I'd do something similar. Use the Export Macro Info and write a macro that returns every variable that occurs in the script text. Should be fairly certain. Quote Link to comment Share on other sites More sharing options...
Shiny Posted December 14, 2011 Author Report Share Posted December 14, 2011 Hello. Thank you for replying and I am sorry for the late reply as I have not been on this forum. That is nice that I am not the only one who wants variable cleanups. I don't have anything similar to put all used variables in a list. I never thought about listing them manually, I only tried to go through the variables in my head, which is so hard. But now you gave an idea. I will attempt to write a script that loads my list of variables and check to see if the variable is inside the exported script. Thanks. I think MEP should run the script virtually in order to find which variables are used in the script, lists them, and allow us to confirm deletion of unused variables. 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.