以文本方式查看主题

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

--  作者:czy66ds
--  发布时间:2021/2/24 9:35:00
--  关于字符串的一个问题
dim s as string = "营销部/地区/岫岩地区/岫岩万客来TPNM"

如何取出最后的“岫岩万客来TPNM”?

--  作者:有点蓝
--  发布时间:2021/2/24 9:39:00
--  
拆分获取最后一个索引的数据:http://www.foxtable.com/webhelp/topics/0245.htm

dim s as string = "营销部/地区/岫岩地区/岫岩万客来TPNM"
dim arr() as string = s.split("/")
msgbox(arr(arr.length - 1))