[Gambas-user] Function to count substrings

Rolf-Werner Eilert rwe-sse at ...3629...
Wed Sep 13 09:18:17 CEST 2017


Hi folks,

Somehow I don't remember this - wasn't there a function to count the 
number of substrings occuring within a string?

For instance, how many times does myString contain chr$(10) (to count 
the number of linefeeds). So it would be a blend of Instr() and String$().

Thanks for your input!

Regards
Rolf




More information about the User mailing list