ok...so you don't have just a string of 12 characters....you have a string that you are looking for that may be present multiple times within a given string...Is that your problem???
You haven't described your problem very well.
If it is a spectific string that you are looking for then you are going to have to specify it....It doesn't really have to be 12 characters long. This would be done in a Parameter
Eg.
{?SearchString}
Type: String
Description: Enter the the string you want searched.
Now create an initialization formula
@initialization (placed suppressed in the report header)
WhilePrintingRecords;
numberVar TheCount := 0;
In the detail section Suppressed....place this formula
@SearchForString
WhilePrintingRecords;
NumberVar TheCount;
NumberVar PStart := 1;
Numbervar PEnd;
StringVar TempString := {Table.stringtobetested};
PEnd := instr(TempString,{?SearchString},PStart);
while PEnd <> 0 do
(
TheCount := TheCount + 1;
If PEnd <> Length(TempString) then
PStart := PEnd + 1
else
PStart := PEnd;
PEnd := instr(TempString,{?SearchString},PStart);
);
Then display the count wherever
@DisplayCount
WhilePrintingRecords;
NumberVar TheCount;
"The Count = " + ToText(TheCount,0);
perhaps this isn't what you want but...maybe it is ....as I said Your problem is not well defined and just seaching for 12 characters of any stripe seems meaninless to me...Hope this helps
Jim Broadbent