Hi John, Try my sample movie script below. gList = ["Earth", "Jupiter", "Mars", "Venus", "Saturn"] put xGetPos(gList, "Earth") -- 1 put xGetPos(gList, "earth") -- 1 put xGetPos(gList, "Jupiter") -- 2 put xGetPos(gList, "JUPITER") -- 2 ------------------------ -- Case-insensitive search ------------------------ on xGetPos lList, value if not listP(lList) then return nCount = lList.count repeat with i = 1 to nCount if lList[i] = value then return i end repeat return 0 end _____ John Erazo wrote: > In the Message window. > -- Welcome to Director -- > put gList > -- ["Earth", "Jupiter", "Mars", "Venus", "Saturn"] > > put gList.getOne("Earth") > -- 1 > > put gList.getOne("earth") > -- 0 > > put gList.getPos("Jupiter") > -- 2 > > put gList.getPos("JUPITER") > -- 0 Good luck, Fumio Nonaka Attain Corporation [EMAIL PROTECTED] [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