Platforms to show: All Mac Windows Linux Cross-Platform

CountOccurancesMBS(s as string, find as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS Util Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Counts the occurances of a string.
Example
dim s as string

s="111110001110101010111"

MsgBox str(CountOccurancesMBS(s,"1")) // 14
MsgBox str(CountOccurancesMBS(s,"0")) // 7
MsgBox str(len(s)) // 21

Returns the number of occurances of a substring in a string.

Blog Entries

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...