Re: More about Records
Re: More about Records
- Subject: Re: More about Records
- From: "Marc K. Myers" <email@hidden>
- Date: Thu, 04 Jan 2001 15:38:25 -0500
- Organization: [very little]
Scott Norton wrote:
>
Date: Thu, 4 Jan 2001 13:07:13 -0500
>
From: email@hidden
>
Subject: Re: More about Records
>
To: email@hidden
>
>
The universal way to fix this would be to simply realize that aPrime is a
>
reference, and to explicitly extract its contents.
>
>
if 7 is contents of aPrime then display dialog "Is too! Is too!"
To avoid the confusion, and maybe save the processing effort of
dereferencing all those references repeatedly, I've taken to routinely
setting a variable to the contents of the loop variable whenever I use
the form: Repeat With (loop Variable) in (list).
repeat with aFldr in fldrList
set theFldr to (contents of aFldr)
....
end repeat
For those rare occasions where you really WANT a reference to an item in
a list instead of its value, you can still use the loop variable.
Marc [3rd Millennium, Day 4.651]