Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共5 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:行间计算

1楼
guanjianpo 发表于:2024/5/29 12:12:00
 行间计算,批量怎么处理

tables("A").rows(1)("第二列") = tables("A").rows(0)("第一列") * tables("A").rows(1)("第一列")

tables("A").rows(2)("第二列") = tables("A").rows(1)("第一列") * tables("A").rows(2)("第一列"),,,批量这么处理,代码怎么写,老师
2楼
y2287958 发表于:2024/5/29 12:16:00
遍历一下就可以了
3楼
guanjianpo 发表于:2024/5/29 12:18:00
老师,我是新手,搞个代码看看,谢谢
4楼
有点蓝 发表于:2024/5/29 12:19:00
for i as integer = 1 to tables("A").rows.count - 1
tables("A").rows(i)("第二列") = tables("A").rows(i-1)("第一列") * tables("A").rows(i)("第一列")
next

5楼
guanjianpo 发表于:2024/5/29 12:24:00
感谢,老师,问题解决
共5 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.