Script variables - listing / deallocating memory

Posted by Zlad on Tue 24 Mar 2009 03:41 PM — 2 posts, 12,974 views.

#0
Hi,

1. How can i list all variables/arrays/objects currently used by script (not world variables)?

2. How to deallocate memory for variable/array in VBs?
For example if there is a bunch of global variables only used for short period of time.

Thanks in advance
Amended on Tue 24 Mar 2009 03:42 PM by Zlad
Australia Forum Administrator #1
I'm not sure if you *can* list all variables. I know you can in Lua because they are stored in a global table. Can't say for sure about VBscript.

As for deallocating, I suppose you could set the variable to Empty, and let the garbage-collector deal with it.