Re: Scripting in Excel -> search different words in column and color them
Re: Scripting in Excel -> search different words in column and color them
- Subject: Re: Scripting in Excel -> search different words in column and color them
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 24 Oct 2002 21:17:09 -0700
On 10/24/02 5:09 PM, "has" <email@hidden> wrote:
>
Paul Berkowitz wrote:
>
>
> ASLG, pp. 256-7, but notice the catch described in the NOTES, requiring
>
> 'contents of' operator, or else evaluating the list item explicitly to a
>
> variable. For that reason (i.e. forgetting about it), it's usually simpler
>
> to use the 'Repeat With (loopVariable) From (startValue) To (stopValue)'
>
> method.
>
>
I don't agree with this. I can't see using:
>
>
item i of foo
>
>
inherently being any simpler than using:
>
>
contents of foo
The thing is - you don't have to _use_ it. you just do it once, because you
have to:
repeat with i from 1 to (count theList)
some someNiceVariable to item i of theList
and from there on in you can just refer to 'someNiceVariable ' without fear
anything will bite you.
Whereas
repeat with someNiceVariable in theList
you have to keep referring to 'contents of someNiceVariable' every bloody
time you want to _use_ it, or else set another variable to the contents, in
which latter case you might as well just use the 'repeat with i from 1 to
whatever' method.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.