Re: Strings
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <OF6A373076.C4A03056-ON85256D5C.0060A9C9-85256D5C.0060DFFF@aon.com> |
Hi Eduardo,
Pos(string 2, string 1) will return 6. If string 2 is not in string 1, Pos
will return 0.
Hope this helps.
Raymond
"Eduardo Meyer"
<emeyer@unimedpiracic
aba.com.br>
07/07/2003 02:34 PM
Please respond to
delphi-programming
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
------------------------ 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/