Jump to content
Macro Express Forums

Deleting unused variables after it is no longer used


Recommended Posts

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.

Link to comment
Share on other sites

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.

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.

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...