Code: Select all
function CountOccurrences haystack, needle
set the itemdelimiter to needle
return the number of items in haystack - 1
end CountOccurrences
Code: Select all
function CountOccurrences haystack, needle
set the itemdelimiter to needle
return the number of items in haystack - 1
end CountOccurrences