|
请大家帮帮忙!
Call WebList( "code","Edit") 报错??????
Public Function WebList( StrName,strValue)
Set Objdesc = Description.Create
Objdesc("micclass").Value = "WebList"
Objdesc("html tag").value = "SELECT"
Objdesc("name").value = StrName
Set strWebList = Browser("title:=.*").Page("title:=.*").ChildObjects(Objdesc)
if strWebList.count = 1 then
strWebList(0).highlight
strWebList(0).Select strValue
End if
Set strWebList = Nothing
Set Objdesc = Nothing
End Function
一个test 里call 一个库函数,用go to function definition 找不到该方法, 运行时报 Wrong number of arguments or invalid property assignment: 'WebList' 错误,以前执行都是passed,现在运行突然有问题了。我把方法名改成Public Function WebList1( StrName,strValue)
然后调用Call WebList1( "code","Edit") 是passed,疯掉了,不知道为什么? |
|