quote:
Originally posted by Robinou
Hi guys,
I would like to know how to find the number of specific string on a range.
I show my exemple below.
Thanks a lot
Define the range with "-v" switch, then you loop over each item in it. For example,
%A = "MG";
range -v rr = 4[3]:9[3];
int count = 0;
for(int ii = 1; ii <= rr.GetSize(); ii++)
{
string ss$ = rr[ii]$;
if(compare(ss$, %A) == 1)
{
count += 1;
}
}
type "%A" Found: $(count);
------------------------------------------
Be The Change
You Want To See
In The World
------------------------------------------