PDA

View Full Version : Public Variables



smile_please
04-26-2010, 06:40 PM
Hi All,

I have 10 to 15 public variables in my script. If i execute my scripts continuously, sometimes it takes the value of the previous execution.

Is there anyway to clear all the Public variables after every execution...


Thanks in Advance

Bala

Bob Phillips
04-27-2010, 04:38 AM
Why are they public, could they be local to the procedure?

Tommy
04-27-2010, 04:52 AM
I normally have an initialize sub to set all my variables to a value, do all the initial sets .....
Then I have a tidy up sub that cleans up all the files, moves them etc...