以文本方式查看主题

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

--  作者:czy66ds
--  发布时间:2024/1/29 14:19:00
--  关于字符串的一个问题
假设
dim x as string = "x"
dim y as string = "y"
dim s as string = "A,B,C"

希望得到字符串 m = “xAy,xBy,xCy”


--  作者:czy66ds
--  发布时间:2024/1/29 14:24:00
--  
字符串m不定长,即也可以是m="A,B,C,D,E“
[此贴子已经被作者于2024/1/29 14:25:00编辑过]

--  作者:有点蓝
--  发布时间:2024/1/29 14:38:00
--  
Split拆分,遍历拆分的字符,合并其它内容,再使用Join合并