Thank you,
And apologize for the missing subject, too busy to find the answer by myself
;-)

Jean-Charles

-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoy� : jeudi 12 juillet 2001 10:56
� : [EMAIL PROTECTED]
Objet : Re: <lingo-l>


Jean-Charles wrote:

>I would like to a specific string inside a list of string.
>Does someone know, and I think so, the lingo function for that?


Maybe simply this?

-- Welcome to Director --
listOfStrings = ["Use", "getOne", "to find", "an item", "in a list"]

myItem = "to find"

indexOfMyItemInTheList = listOfStrings.getOne(myItem ) -- returns 0 if the
item is not there

put indexOfMyItemInTheList
-- 3

See getOne()and getPos() in Manuals or Help for details.

Please don't ever forget to specify the subject of your messages.

HTH,

Franco

IFC Programming Consultant
http://www.chnexus.com/main.htm
Private mailto:[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!]

[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