Re: Variables referenced in a project



Chris L. wrote:
I'm sure someone has asked this before, but I can't find it in NG.

How do I find the references of a variable in the entire project which has
many units, without having to go through each unit manually?

Comment out the variable's declaration. Let the compiler tell you where everything goes wrong.


Say, I have a
variable VARXXX that I used in a number of units in my project. Now I have
an issue that I suspect has to do with how this variable. Is there a quick
way to find all the occurences within this project?

Delphi 2005 has a "find references" command.

I usually just avoid the issue by having no global variables. Since all variables are local, finding where they're used is simple.

--
Rob
.



Relevant Pages