TALLY function
Purpose: TALLY returns the number of times FindMainStr$ occurs in SourceMainStr$
Syntax: RetVal% = TALLY(MainStr$, Match$ [,CaseSensitivity%]) Parameters:
|
Example 1: This snippet uses the TALLY function default case sensitive mode.
DIM
a$DIM
b$DIM
int1% a$=
" ABC abc AbC aBc "
b$=
"abc"
int1%=
TALLY
(
a$, b$)
Result:
1
Example 2: This snippet uses the TALLY function optional case insensitive mode.
DIM
a$DIM
b$DIM
int1% a$=
" ABC abc AbC aBc "
b$=
"abc"
int1%=
TALLY
(
a$, b$,1
)
Result:
4