String.NInStr (gb)
Static Function NInStr ( String As String, Pattern As String [ , Mode As Integer ] ) As Integer
Returns the number of occurrences of
Pattern in
String.
If the substring is not found, this function returns zero.
Mode can be set to
gb.IgnoreCase for a case insensitive comparison.
Examples
PRINT String.NInStr("Éternelle divinité", "é")
PRINT String.NInStr("Éternelle divinité", "é", gb.IgnoreCase)