FT_FINDITH

FT_FINDITH()
 Find the "ith" occurrence of a substring within a string

 Syntax

      FT_FINDITH( <cCheckFor>, <cCheckIn>, <nWhichOccurrence> ;
                  [, <lIgnoreCase> ] ) -> <nStringPosition>

 Arguments

     <cCheckFor> is the string to search for.

     <cCheckIn> is the string to search.

     <nWhichOccurrence> is the number of the occurrence to find.

     <lIgnoreCase> is a logical indicating if the search is to be case
        sensitive.  The default is no case sensitivity (.F.).

 Returns

     The position in the string cCheckIn of the ith occurrence of cCheckFor.

 Description

     This function finds the position in a string of the "ith" time another
     string appears in it.

 Examples

     // Find the Position in cMemoString of
     // the 10th Occurrence of "the", case
     // insensitive

     nNextPosition := FT_FINDITH("the", cMemoString, 10)

 Source: FINDITH.PRG

 Author: David Husnian

See Also: FT_AT2()

 

One response to “FT_FINDITH

  1. Pingback: FT String | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.