xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

Occurs()

Counts the occurrance of a substring in a character string.

Syntax

Occurs( <cSubStr>, <cString> ) --> nCount

Arguments

<cSubStr>
This is a character string being searched in <cString>.
<cString>
This is a character string holding occurrances of <cSubStr>.

Return

The function scans <cString> and counts the occurrances of <cSubStr>. The number of occurrances is returned as a numeric value.

Info

See also:At(), StrTran(), SubStr(), Token()
Category: CT:String manipulation , Character functions
Source:ct\util.prg
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe