[<<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

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson