I am working on a script and hence have been running it over and over.
While debugging my script, i am using LISTVARS.
I noticed that there are vars in the list that i have stopped using in the script. Those lines have been deleted from the script itself as well.
Can anyone tell me why those vars are still being listed in LISTVAR output? Can I clear all variables from memory?
Thanks
Listvars shows vars that are no longer used
Re: Listvars shows vars that are no longer used
listvars will show any declared globals that can be detected during compile time, any that u might create in the global scope or leak out, and any locals to the currently executing function(if there is any)
the global variables are never freed(but u can erase their contents, eg by assigning an empty string or with VarSetCapacity())
local variables are freed whenever the executed function goes out of scope
but basically, show the code...
the global variables are never freed(but u can erase their contents, eg by assigning an empty string or with VarSetCapacity())
local variables are freed whenever the executed function goes out of scope
but basically, show the code...
Who is online
Users browsing this forum: downstairs, filipemb, OrangeCat, roysubs and 162 guests