Unused Variables

R

Rob T

Is there a way to scan a project and find the variables that have been
declared but never used? I'm fixing someone else's code and it filled with
these things!

Thanks.
 
K

Kevin Spencer

If you're using Visual Studio.Net, yes. It will tell you every time you
compile. It just won't alert you.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
S

Steve C. Orr [MVP, MCSD]

It will tell you every time you compile.

I believe this applies only to C#.
For VB.NET you may need a 3rd party tool.

I hope this helps,
Steve C. Orr,
MCSD, MVP in ASP.NET
http://Steve.Orr.net
 
K

Kevin Spencer

It should appear in the Task List. I must admit I don't use VB.Net very
often, but I believe it is there. Correct me, please, if I'm wrong.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
R

Rob T

It doesn't show up in the task list, nor the Output window when you build
the project. Any other suggestions? I vaguely recall there being a menu
option in the old visual studio...but it's been a long time since I've
traveled that path.... (PS I am using VB)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top