| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Counts the occurrance of a substring in a character string.
Occurs( <cSubStr>, <cString> ) --> nCount
The function scans <cString> and counts the occurrances of <cSubStr>. The number of occurrances is returned as a numeric value.
| See also: | At(), StrTran(), SubStr(), Token() |
| Category: | CT:String manipulation , Character functions |
| Source: | ct\util.prg |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
http://www.xHarbour.com