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_nooccur()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_NOOCCUR()
 Find the number of times one string occurs in another
------------------------------------------------------------------------------

 Syntax

      FT_NOOCCUR( <cCheckFor>, <cCheckIn> ;
                  [, <lIgnoreCase> ] )      -> <nOccurrences>

 Arguments

     <cCheckFor> is the string to search for

     <cCheckIn> is the string to search

     <lIgnoreCase> is a boolean variable to force case sensitivity
     (optional, defaults to .F.).

 Returns

     The number of times <cCheckFor> appears in <cCheckIn>

 Description

     This function finds the number of times a string occurs in a
        second string.

 Examples

     // Find the number of times "the" appears in cMemoString, case
     // insensitive

     nNoOfOccurrences := FT_NOOCCUR( "the", cMemoString )

     // Find the number of times "the" appears in cMemoString, case
     // sensitive

     nNoOfOccurrences := FT_NOOCCUR( "the", cMemoString, TRUE )

 Source: NOOCCUR.PRG

 Author: David Husnian

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