你好,
我想获取设置列下单元格中项目的总计数。有人能给我建议如何编写代码,以便它获取 :setting 列下的值并计算出总数,如 :Total Items 下所示。非常感谢。

这真太了不起了! 我只能进行一种类型的 str 计数。 我学到了新东西。 多谢。
这是我想出的列总项目的公式。
count = 0;
i = 1;
While( Word( i, :setting, "," ) != "",
theWord = Word( i, :setting, "," );
If( Contains( theWord, "-" ) | Contains( theWord, ":" ),
Show( Row(), theWord );
count = ((count + Num( Word( 2, theWord, "-:" ) )) - Num( Word( 1, theWord, "-:" ) )) + 1;
,
count
++);
i++;
);
count;