Tom,
Can you expand upon/clarify what you are trying to achieve?
If you want to find and remove a variable you have declared in code, then
you can try using the VS find tool. Press Ctrl + F to open this. (Note you
can also press Ctrl + H to access the find and replace.)
You can then either Find Next, or mark all instances and skip between them
quickly (using the code bookmark (flag) toolbar), to check how that variable
is being used.
A consideration is the scope and lifetime of the variable. If it is used in
just one procedure, once that procedure has completed, then the variable
goes out of scope and will eventually be taken care of by the framework's
garbage collection (this isn't instant though). You could also override the
issue by setting the variable to nothing at the end of the method. Take a
look at MSDN
http://msdn.microsoft.com/library/de...abletopics.asp
for further info on scope and lifetime.
If the variable is global to your form or application, a cruder method would
be to remove (comment out) the declaration and try to recompile. Any
instance of the variable being used should the appear in the Tasks pane as a
list showing you where the variable is no longer a member of the class. You
can double-click each Task entry to be taken to the code line in question so
you can check how the variable is being used. This approach is a bit
coarse, particularly for larger projects, but it may still help you.
Hope this helps.
Alec
"Tom McL." <tb***@cwnet.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Is there a way I identify and remove unused variable within vb2005
standard edition