以文本方式查看主题

-  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=144943)

--  作者:miaoqingqing
--  发布时间:2020/1/3 16:01:00
--  [求助]根据后缀字符串
第一列              第二列根据第一列后缀 化妆品,生成第二列值 添加 便宜。后缀 水果,添加 热带

乳液化妆品 乳液便宜化妆品
粉末化妆品 粉末便宜化妆品
菠萝水果 菠萝热带水果
苹果水果 苹果热带水果

--  作者:有点蓝
--  发布时间:2020/1/3 16:40:00
--  
dim s as string = tables("表A").current("第一列")
if s.EndsWith("化妆品")
tables("表A").current("第二列") = s.replace("化妆品","便宜化妆品")
elseif s.EndsWith("水果")
tables("表A").current("第二列") = s.replace("水果","热带水果")
end if