Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set all variables to nothing

Status
Not open for further replies.

smiler44

Technical User
Sep 18, 2009
83
GB
I have some 60 variables. I dont want to have to set each one back to nothing one at a time once they have been populated.
Is there as easier way?
thanks
smiler44
 
Code a function to initialize all variables. Then call the function any time you need to do that.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Skip,
not sure I know how to do what your saying because I'm lost with functions but ....
if a write a sub routine that sets all my variables to nothing and then call it each time I want to set them to nothing.

is that it? that is not a lot of work and will help me as there are one or two I may not want to set to nothing.

simple idea, I did not think of it.

thank you

smiler44

 
You got it!

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Skip thank you. Already done and it works a treat.

smiler44
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top