Re: Strings
Marie F Vihonsky <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
Use the POS function. If the pos(string2,string1) > 0 then begin end; Marie Eduardo Meyer wrote: > People, > > I would like to know how can compare two strings in order to find out if the string 1 contains the string 2. > > Example: > > String 1: "sweetheart" > String 2: "heart" > > In this case the fucntion would return TRUE. > > Could you guys help me? > > Thanks so much! > > > Eduardo Meyer > São Paulo - Brazil > > [Non-text portions of this message have been removed] > > > > Delphi Tips & Tutorials... > http://www.delphicollection.com > --------------------------------------------------------------- > Unsubscribe:[email protected] > List owner:[email protected] > --------------------------------------------------------------- > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > > ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get A Free Psychic Reading! Your Online Answer To Life's Important Questions. http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/i7folB/TM ---------------------------------------------------------------------~-> Delphi Tips & Tutorials... http://www.delphicollection.com --------------------------------------------------------------- Unsubscribe:[email protected] List owner:[email protected] --------------------------------------------------------------- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/