| ASP使用InStrRev获取文件扩展名
					当前位置:点晴教程→知识管理交流
					
					→『 技术文档交流 』
					
				 
 做法是使用InStrRev函数查找文件名字符串中最后一个点的位置,然后根据这个位置使用Mid函数来提取文件扩展名。 function get_file_extname(file_name) dotix = InStrRev(file_name, ".") If dotix > 0 Then get_file_extname = Mid(file_name, dotix) Else get_file_extname = "" End If end function 该文章在 2024/12/14 10:48:37 编辑过 | 关键字查询 相关文章 正在查询... |