After looking at other scripts, I can't figure out why I'm getting this error:
CID_TEST.txt424:Object required 'contact' in line 18
in this code:PHP Code:
Sub main()
Dim cid_name, cid_number
Dim adr_count
Dim contact
Dim i
cid_name = hsp.CIDName(1)
cid_number = hsp.CIDNumber(1)
hs.Writelog "CID_Test", cid_name & ": " & cid_number
adr_count = hsp.ADRCount
hs.writelog "CID_Test", "ADRCount is " & adr_count
For i = 0 To adr_count
Set contact = hsp.ADRGet(i)
hs.writelog "CID_Test", "contact is " & contact.cid_name
Next
End Sub
Comment