Re: Variables referenced in a project



On Sat, 22 Oct 2005 21:08:51 +0200, "Maarten Wiltink"
<maarten@xxxxxxxxxxxxxxxxxx> wrote:

>"J French" <erewhon@xxxxxxxxxx> wrote in message
>news:4359ebed.247173311@xxxxxxxxxxxxxxxxxxxxxxx
>> On Fri, 21 Oct 2005 16:49:28 GMT, "Chris L."
>> <christopher.leongc@xxxxxxxxxxx> wrote:
>
>>> 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? ...
>>
>> 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

>And if you've ever used a with statement at all, it might be a good
>idea to follow up with a project-wide search for the old name. If it's
>still used anywhere, you may have a scoping messup.

Good point - however I /never/ use 'With'

If I do have to have a Global or a Unit level variable, then I try to
make it part of a Record so it looks like :

g.DataPath
cmn.SomeFlag

I'm also keen on using the Unit name as a prefix if there is any doubt
about where a Variable, Procedure or Function 'comes from'


.



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)