RE: Strings

"Kamil Kosowski" <[email protected]>
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
ex:

if pos(String2,String1) >0 then


If the string is not found, 0 is returned.


kosia

-----Original Message-----
From: Eduardo Meyer [mailto:[email protected]]
Sent: Monday, July 07, 2003 7:34 PM
To: [email protected]
Subject: [Delphi] Strings


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 ---------------------~-->
Save on Coral Calcium. Get Better Health and
Stronger Bones. Seen on TV
http://www.challengerone.com/t/l.asp?cid-2805&lp=calcium2.asp
http://us.click.yahoo.com/9gf46B/EfUGAA/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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.