以文本方式查看主题

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

--  作者:hiliuyong
--  发布时间:2017/4/10 7:17:00
--  [求助]父路径如何表达
dim strPath as string = "C:\\工作文件\\2017"
我想直接提取“C:\\工作文件”
代码应该如何写?

--  作者:有点色
--  发布时间:2017/4/10 8:24:00
--  
Dim strPath As String = "C:\\工作文件\\2017"
msgbox(FileSys.GetParentPath(strPath))