CountString()

Syntax

Result = CountString(String$, StringToCount$)
Description
Returns the number of occurences of StringToCount$ found in String$. This is not word based, which means than if the 'StringToCount$' is a part of a word, it will be counted as well, as shown in the following example.

  Debug CountString("How many 'ow' contains Bow ?", "ow") ; will display 3

Supported OS

All

<- Chr() - String Index - FindString() ->