[求助] QTP 脚本执行错误,提示类型错误,大家帮忙看看
[求助]QTP脚本执行错误Dimfso,xls,spli_pathSetfso=CreateObject("Scripting.FileSystemObject")Set...
[求助] QTP 脚本执行错误
Dim fso,xls,spli_path
Set fso = CreateObject("Scripting.FileSystemObject")
Set xls = CreateObject("Excel.Application")
spli_path = split(environment("TestDir"),"\",-1,1)
For i=0 to ubound(spli_path)
res_path = res_path & spli_path(i) & "\"
Next
msgbox res_path
执行这句怎么报是抱类型错误。不知道问题在哪里?请大家帮忙看看!! 展开
Dim fso,xls,spli_path
Set fso = CreateObject("Scripting.FileSystemObject")
Set xls = CreateObject("Excel.Application")
spli_path = split(environment("TestDir"),"\",-1,1)
For i=0 to ubound(spli_path)
res_path = res_path & spli_path(i) & "\"
Next
msgbox res_path
执行这句怎么报是抱类型错误。不知道问题在哪里?请大家帮忙看看!! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询