我想在报告的每一页中计算一个文本字符串,并打印出页脚中字符串的数量。
在文本字段中搜索字符串是直截了当的,也计算文本字段中的结果,但是当它有多个条目时,如何将每个报告页面的结果汇总到一个整数变量中呢?
即我有一个像这样的报告页面,其中每一行都是新记录。这是第一个报告页面:
aaaaaaF
aaaaaFF
ffaaaaaaaaa
FaaaaaFF
现在页脚:
There are 4 records. The letter "F" has been found 6 times on this report page.
现在是第二个报告页面:
aaaFaaF
aaaaaF
fFaaaaaaaaa
FaaaFaFF
FFaaaaFa
页脚:
There are 5 records. The letter "F" has been found 10 times on this report page.
如果 smdy 对我有建议,我会很高兴。谢谢!