NInStr
Count = NInStr ( String AS String , Substring AS String [ , Comparison AS Integer ] )
Returns the number of occurrences of
Substring inside
String.
Comparison can be one of the following value:
If the substring is not found, this function returns zero.
This function only deals with ASCII strings. To manipulate UTF-8 strings, use the
String class.
Examples
PRINT NInstr("Gambas Almost Means BASIC", "a")
PRINT NInstr("Gambas Almost Means BASIC", "A")
PRINT NInstr("Gambas Almost Means BASIC", "a", gb.IgnoreCase)
PRINT NInstr("Gambas Almost Means BASIC", "Bas", gb.IgnoreCase)
See also