Count in execquery for wql query
I am trying to connect to lenel and using WQL to fetch result. WQL when
runned in WMI explorer returns record.
Set objServices = GetObject("winmgmts://./root/onguard")
Set cardSet = objServices.ExecQuery("select * from Lnl_Badge where id
=11111")
if not cardSet is nothing then
Response.Write("<br/>cardset has something")
vContinue = true
else
Response.Write("<br/>cardSet set is nothing")
Exit Function
end if
Response.Write("<br/>count ")
Count = cardSet.Count
Response.Write(Count)
The problem is that the value of Count is coming nothing and program exit
from the current function. Any idea what is wrong.
"Cardset has something" is displayed though.
No comments:
Post a Comment