以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- 求一个代码优化思路,谢谢 (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=195768) |
-- 作者:y2287958 -- 发布时间:2025/3/7 19:49:00 -- 声明列名数组,然后遍历 |
-- 作者:有点蓝 -- 发布时间: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段代码使用
|