Office中国论坛/Access中国论坛

标题: 菜鸟求助:字符提取问题(解决) [打印本页]

作者: 风中漫步    时间: 2015-9-10 14:25
标题: 菜鸟求助:字符提取问题(解决)
本帖最后由 风中漫步 于 2015-9-11 15:15 编辑

有段字符:
test\123.xls
test\ddd\456.xls
hello\ooo\789.xls
先提取第1个"\"段内字符
test
test
hello
装到树,在点击test后在提取123.xls和ddd装入,依次类推.请教代码该如何写?
谢谢.

作者: roych    时间: 2015-9-10 14:31
http://www.office-cn.net/thread-98354-1-1.html
作者: 风中漫步    时间: 2015-9-10 14:39
roych 发表于 2015-9-10 14:31
http://www.office-cn.net/thread-98354-1-1.html

谢谢斑竹关注.只是代码在mdb中,看不到.
我的这个主要是分割字串
作者: 盗梦    时间: 2015-9-10 14:50
Instr逐个查找"\"的位置,再结合mid截取字符串。你也可以用Split函数用"\"字符分列
作者: 风中漫步    时间: 2015-9-10 14:53
盗梦 发表于 2015-9-10 14:50
Instr逐个查找"\"的位置,再结合mid截取字符串。你也可以用Split函数用"\"字符分列

谢大师.我是菜鸟,有简单点的吗
作者: 风中漫步    时间: 2015-9-11 15:13
解决{:soso_e100:}




欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) Powered by Discuz! X3.3