Re: Variables referenced in a project



On Fri, 21 Oct 2005 16:49:28 GMT, "Chris L."
<christopher.leongc@xxxxxxxxxxx> wrote:

>Hi All,
>
>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? 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?

Similar answer to Bob's
- change the name of the variable (add a silly letter) then try to
compile - the compiler will lead you to the spot

It is generally a good idea to avoid global variables, but if one
really must have them, then tuck them in a base level Unit and put
that units name in the Uses list of all Units that need it.
.



Relevant Pages

  • Re: translation functions
    ... The Compile option turning gray is normal: ... Doug Steele, Microsoft Access MVP ... None of the references are missing ... then go back in and unselect the reference you just added. ...
    (microsoft.public.access.gettingstarted)
  • Re: Names of textboxes on tab-pages within a tab control?
    ... Compact the database to get rid of this junk: ... Uncheck any references you do not need. ... Still in the code window, choose Compile from the Debug menu. ...
    (comp.databases.ms-access)
  • Re: VS2005 mixed project intellisense confusion
    ... No idea or suggestion but my advice always is to keep the two project ... references, not via the links: ... wrong selection) the next compile run for the active project (or any ... except the primary) fails as the IDE compiled the respective module with ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: VB program conversion from Windows 95 to Windows XP
    ... >>> compile error changed each time, ... >> Are there any missing references at all? ... If you post the contents of your VBP file, ... >> by opening the project file in Notepad. ...
    (microsoft.public.vb.general.discussion)
  • Re: Compile Time Garbage Collection impossible?
    ... I think that compile time garbage collection is impossible, ... identify and isolate problems due to holding references beyound useful ... It identifies "leaking regions" in Java ... would be to use the drag analysis results for directing static ...
    (comp.compilers)