回复 1楼ypeanng的帖子
请问具体希望遍历列实现什么功能?遍历列代码请参考:
- <SCRIPT language=javascript>
- function doCalc() {
- var colcount = FpSpread1.GetColCount();
- var total = 0;
- for (var i=1; i<colcount-1; i++) {
- var subtotal = parseFloat(FpSpread1.GetValue( 10,i ));
- total += subtotal;
- }
- if (!isNaN(total))
- FpSpread1.SetValue(10, 0, total, true);
- }
- </SCRIPT>
复制代码 |