To The Smart People:
If I set 25 public variables by running a script and I see the script set all the variables and I stop the script. I then re-run the same script but I step through the script I see the variables already set before the script gets there.
Question: Does TP remember the public variables and reset then until a change to them?
If the above is not true please return my mind as Iím heading home for a good night sleep.
Please remember that by declaring the variables in the script you are not acually resetting the public variables in the shared module, you are merely creating new variables that have the same names that are local to the script.
This is fine if you want to refer to these variables only in this one script, although to avoid confusion you should delete the variables in the shared module because these will now be redundant. However, if you want the variables to remain global so that you can refer to them in other scripts then you must keep them in the shared module and delete the variables you have declared in the script.
You're then back to your original problem of resetting the variables. You will have to write your own function to do this. You need something like this in the shared module, which you should call it at the start of your script:
MyInteger = 0
MyLong = 0
MyString = ""
Set MyObject = nothing