Brennan wrote:
On 11/7/04 at 19:43, Matt Wells <[EMAIL PROTECTED]> wrote:
repeat with x = aa to ab
boldListC.add(x)
end repeat
Why not check to see if the value is already in the list BEFORE you add
it.
repeat with x = aa to ab
if boldListC.getPos(x) then
next repeat
end if
boldListC.add(x)
end repeat
What the heck, shorten it to:
repeat with x = aa to ab
if not boldListC.getPos(x) then boldListC.add(x)
end repeat
--
Carl West
mailto:[EMAIL PROTECTED]
http://carl.west.home.comcast.net
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL
PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping
with programming Lingo. Thanks!]