Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) Tools Help GTL - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

GT_CHRCOUNT()

Count the number of times a character appears in a string
---------------------------------------------------------------------------------

 Syntax

        GT_ChrCount(<cChr>, <cStr>) --> nFreq  

 Arguments

        <cChr>    - The character to find the frequence of <cStr>  - 
                  The string in which to find the character

 Returns

       nFreq    - The number of times <cChr> occurs in <cStr>    

 Description

      GT_ChrCount() counts how many times a specified character  appears in
      a string.

      NOTE:  invalid parameters will return -1

 Examples

      ? GT_ChrCount("t", "the cat sat on the mat")      // prints 4

Status

      Ready

 Files

      Library is libgt
      Library is libgt

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