xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

NumAt()

Counts multiple occurrences of a substring within a string.

Syntax

NumAt( <cSearch>   , ;
       <cString>   , ;
      [<nSkipChars>] ) --> nCount

Arguments

<cSearch>
This is a character string to search for in <cString>.
<cString>
This is the character string to find <cSearch> in.
<nSkipChars>
This numeric parameter defaults to 0 so that the function begins searching with the first character of <cString>. Passing a value > 0 instructs the function to ignore the first <nSkipChars> characters in the search.

Return

The function returns the number of times <cSearch> is found in <cString> as a numeric value.

Info

See also:AfterAtNum(), AtNum(), BeforAtNum(), CSetAtMuPa(), SetAtLike()
Category: CT:String manipulation , Character functions
Source:ct\numat.c
LIB:xhb.lib
DLL:xhbdll.dll


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