alaamokhtar
IS-IT--Management
Alert me
|
Edit
Question
You cannot vote on your own post
0
I have an attendance machine and SDK for it
I use the next command for getting attendance log
ip="10.0.0.244"
machineno=1
d11=0
this.Parent.olecontrol1.setipAddress(@ip,5005,0)
MESSAGEBOX(this.Parent.olecontrol1.openCommPort(machineno))
this.Parent.olecontrol1.enableDevice(machineno,1)
MESSAGEBOX(this.Parent.olecontrol1.readgeneralLogCount(machineno,@d11))
MESSAGEBOX(d11)
MESSAGEBOX(this.Parent.olecontrol1.readgeneralLogData(@machineno))
the first messagebox return true
and the second return true
the third messagebox return the no of logs (300 logs)
but the third return false
so I can't get the 300 logs to my tables
when I use get error function and I get
error number =3
from ocx manual i know that error 3 mean An error has happened to receipt of the data