You could use StrStrCount from the jclstrings unit in the Delphi JEDI library (free from http://www.delphi-jedi.org/ )
Regards, John Doolan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of M Tuttle Sent: 03 November 2005 15:08 To: Delphi - Talk Subject: Need 2 equivilent FoxPro function for Delphi Greetings All, I need two functions that FoxPro DOS has in Delphi. They are: $ This function returns true (.T.) if a character expression is contained in another character expression. If the character expression isn't found, false (.F.) is returned. OCCURS() OCCURS() returns the number of times the value of a character expression is found in the value of another character expression. OCCURS() returns zero if the value of an expression isn't found in the value of another expression. Does anyone know of or have any code snippets they can share that will do this? Thanks to all that are kind enough to reply. Michael Tuttle Software Technologies, Inc. Topeka, KS __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
