You'd need to use the substring function within a loop and check each character, no time to check the syntax, but something like this
my_string = "BBB12BBB";
do for i = 1 to length(my_string);
if substr(my_string,i,1) = "B" then count+1;
end;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.