i think you can just use getPos:
if myList.getPos(d) <> 0 then
--it's in the list
end if
--bh
Nick Youmans wrote:
>
> > how can i find if there an item taht i'm looking for in a list if i don't
> > know it's position
> >
> > example
> > mylist = [a, d, p, o]
> > and i want to know if d is in the list but it could be in any position in
> > the list
>
> position = 0
> repeat while i = 1 to mylist.count
> if mylist[i] = "d" then
> position = i
> exit repeat
> end if
> end repeat
>
> you can then take position and do anything you want with it...
>
> good luck,
> Nick
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/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!]
--
R. Bhakti Klein
Instructional Media Developer, Distributed Learning Workshop
http://www.dlworkshop.net/
··
Baritone, Wicki6
http://www.wicki6.com
···
"On Earth, you can only do little things;
but you can do them with a lot of Love."
-- Mother Theresa
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]