Rss & SiteMap

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

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

标题:求一个代码优化思路,谢谢

1楼
广西老表哥 发表于:2025/3/7 18:39:00
用户已锁定!
2楼
y2287958 发表于:2025/3/7 19:49:00
声明列名数组,然后遍历
3楼
有点蓝 发表于:2025/3/8 9:08:00
参考:http://www.foxtable.com/webhelp/topics/1533.htm

如果黄色部分是除了"编号"、"销售退货单明细ID"后剩余的列,可以这样

for each c as col in t.cols
if c.name <> "编号" andalso c.name <> "销售退货单明细ID" then
    if jt(c.name) isnot nothing then
nr(c.name)=CStr(jt(c.name))
    end if
end if
next

如果只是部分列,参考帮助的第2段代码使用
共3 条记录, 每页显示 10 条, 页签: [1]

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

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