Foxtable(狐表)用户栏目专家坐堂 → [求助]求文件名不含扩展名


  共有2277人关注过本帖树形打印复制链接

主题:[求助]求文件名不含扩展名

帅哥哟,离线,有人找我吗?
有点色
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:13837 积分:69650 威望:0 精华:0 注册:2016/11/1 14:42:00
  发帖心情 Post By:2017/5/9 15:47:00 [显示全部帖子]

Dim str As String = FileSys.GetName("C:\reports\test.xls")
Dim idx = str.LastIndexOf(".")
If idx >= 0 Then
    str = str.SubString(0, idx)
End If
msgbox(str)

 回到顶部