> 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!]

Reply via email to