Re: Variables referenced in a project
- From: erewhon@xxxxxxxxxx (J French)
- Date: Sun, 23 Oct 2005 09:19:02 +0000 (UTC)
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'
.
- References:
- Variables referenced in a project
- From: Chris L.
- Re: Variables referenced in a project
- From: J French
- Re: Variables referenced in a project
- From: Maarten Wiltink
- Variables referenced in a project
- Prev by Date: Re: Program closure
- Next by Date: Re: Program closure
- Previous by thread: Re: Variables referenced in a project
- Next by thread: Re: Program closure
- Index(es):
Relevant Pages
|