我是一个基本的指纹程序员,我真的不知道如何在 VB 6 上使用组件 CZKEM 获取数据。
这是我的代码,我使用它时出错。
Dim dwEnrollNumber As Long
Dim dwVerifyMode As Long
Dim dwInOutMode As Long
Dim timeStr As String
Dim i As Long
Dim lAddNew As Boolean
If CZKEM1.ReadGeneralLogData(vMachinenumber) Then
i = 1
CZKEM1.ReadAllUserID (vMachinenumber)
While CZKEM1.GetGeneralLogDataStr(vMachinenumber, dwEnrollNumber, dwVerifyMode, dwInOutMode, timeStr)
ListView1.ListItems.Add i, , dwEnrollNumber
With ListView1.ListItems(i)
.SubItems(1) = IIf(IsNull(timeStr), “”, timeStr)
.SubItems(2) = IIf(IsNull(vMachinenumber), “”, vMachinenumber)
.SubItems(3) = IIf(IsNull(dwVerifyMode), “”, IIf(dwVerifyMode = 1, “Fingerprint”, “Password”))
DoEvents
End With
Dim d_TimeStr As Date
d_TimeStr = CDate(Left(Right(Left(timeStr, 10), 2) & “ - ” & Mid(Left(timeStr, 10), 6, 2) & “ - ” & Left(Left(timeStr, 10), 4) & ” & ” & Right(Trim(timeStr), 8), Len(Right(Left(timeStr, 10), 2) & “ - ” & Mid(Left(timeStr, 10), 6, 2) & “ - ” & Left(Left(timeStr, 10), 4) & ” & ” & Right(Trim(timeStr), 8))))
ListView1.ListItems.Add i, , dwEnrollNumber
With ListView1.ListItems(i)
.SubItems(1) = IIf(IsNull(timeStr), “”, timeStr)
.SubItems(2) = IIf(IsNull(vMachinenumber), “”, vMachinenumber)
.SubItems(3) = IIf(IsNull(dwVerifyMode), “”, IIf(dwVerifyMode = 1, “Fingerprint”, “Password”))
DoEvents
End With
ListView1.Refresh
Wend
End If
错误说:“无效的属性值”任何人请帮我解决这个问题...... :(