tally()
Returns the number of existing occurrences of substring into string.
Syntax:
variable
= tally(
string
,
substring
)
variable
= tally(
start
, string
,
substring
)
start is an optional start value specifies where in the string to begin the search.
Example:
a$="ciao ciao ciao ciao"
prints("string: "+a$)
prints(
tally( a$, "ciao" ) )
prints(
tally( 5, a$, "ciao" ) )
waitKey