易表在线答疑技术与交流用户社区 → 想实现数据的替换如何实现,谢谢!!!


  共有7587人关注过本帖树形打印复制链接

主题:想实现数据的替换如何实现,谢谢!!!

帅哥哟,离线,有人找我吗?
wjq1072
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:16190 积分:125850 威望:1 精华:0 注册:2006/8/12 12:29:00
  发帖心情 Post By:2009/12/9 12:20:00 [显示全部帖子]

[这个贴子最后由wjq1072在 2009/12/09 00:48pm 第 1 次编辑]

Eval("EvalFor(GridName,"""+Substitute(Substitute(Substitute(Eval("Substitute(""|@|#|"",""|"","""+Substitute(Mid(ListCols(Grid),0,Search("替换标志",ListCols(Grid))-1),"|",""")+""|""+Substitute(""|@|#|"",""|"",""")+""")"),"@",""",""If([户主代码]=[户主代码1],["),"#","1],["),"|","])"") And EvalFor(GridName,""")+"])"")") And EvalFor(GridName,"替换标志","If([户主代码]=[户主代码1],""已替换"","""")")

 回到顶部
帅哥哟,离线,有人找我吗?
wjq1072
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:16190 积分:125850 威望:1 精华:0 注册:2006/8/12 12:29:00
  发帖心情 Post By:2009/12/9 12:49:00 [显示全部帖子]


 回到顶部
帅哥哟,离线,有人找我吗?
wjq1072
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:16190 积分:125850 威望:1 精华:0 注册:2006/8/12 12:29:00
  发帖心情 Post By:2009/12/9 16:23:00 [显示全部帖子]

EvalFor(Grid,"户主姓名","If(FindRow(Grid,""户主代码1"",""="",[户主代码]) > 0,FindText(Grid,""户主姓名1"",""户主代码1"",""="",[户主代码]),[户主姓名])") And EvalFor(Grid,"身份证号","If(FindRow(Grid,""户主代码1"",""="",[户主代码]) > 0,FindText(Grid,""身份证号1"",""户主代码1"",""="",[户主代码]),[身份证号])") And EvalFor(Grid,"银行名称","If(FindRow(Grid,""户主代码1"",""="",[户主代码]) > 0,FindText(Grid,""银行名称1"",""户主代码1"",""="",[户主代码]),[银行名称])") And EvalFor(Grid,"银行账号","If(FindRow(Grid,""户主代码1"",""="",[户主代码]) > 0,FindText(Grid,""银行账号1"",""户主代码1"",""="",[户主代码]),[银行账号])") And EvalFor(Grid,"家庭地址","If(FindRow(Grid,""户主代码1"",""="",[户主代码]) > 0,FindText(Grid,""家庭地址1"",""户主代码1"",""="",[户主代码]),[家庭地址])") And EvalFor(Grid,"替换标志","If(FindRow(Grid,""户主代码1"",""="",[户主代码]) > 0,""已替换"",[替换标志])")

 回到顶部