Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_findith()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson