Dim Intt1(1 To 1118, 1 To 12) As String '二进制数组
Dim Intt(1 To 1118, 1 To 12) As Byte '二进制数组
For i = 1 To ie - 1
Data8.Refresh
Data8.Recordset.AddNew
lxuhao.Caption = i '序号
'计费表地址
If Intt(i, 1) = 255 Or Intt(i, 2) = 255 Then
lre.Caption = "FF"
Else
If (Intt1(i, 1) = 0 And Intt1(i, 2) <> 0) Or _
(Intt1(i, 1) < 10 And Val(Intt1(i, 2)) >= 10) Then
lre.Caption = "0" & Intt1(i, 1) & Intt1(i, 2)
End If
If (Intt1(i, 2) = 0 And Intt1(i, 1) <> 0) Or _
(Intt1(i, 2) < 10 And Intt1(i, 1) >= 10) Then
lre.Caption = Intt1(i, 1) & "0" & Intt1(i, 2)
End If
If (Intt1(i, 1) = 0 And Intt1(i, 2) = 0) Then
lre.Caption = "00" & Intt1(i, 1) & Intt1(i, 2)
End If
If (Intt1(i, 1) < 10 And Intt1(i, 2) < 10) Then
lre.Caption = "0" & Intt1(i, 1) & "0" & Intt1(i, 2)
End If
If (Intt1(i, 1) >= 10 And Intt1(i, 2) >= 10) Then
lre.Caption = Intt1(i, 1) & Intt1(i, 2)
End If
End If
'卡号
If Intt(i, 3) < 16 Then
khh1 = "0" & Intt1(i, 3)
Else
khh1 = Intt1(i, 3)
End If
If Intt(i, 4) < 16 Then
khh2 = "0" & Intt1(i, 4)
Else
khh2 = Intt1(i, 4)
End If
If Intt(i, 5) < 16 Then
khh3 = "0" & Intt1(i, 5)
Else
khh3 = Intt1(i, 5)
End If
If Intt(i, 6) < 16 Then
khh4 = "0" & Intt1(i, 6)
Else
khh4 = Intt1(i, 6)
End If
lkahao.Caption = khh1 & khh2 & khh3 & khh4
'余额百元
If Intt1(i, 7) = "FF" Then
lybai.Caption = "-"
Else
lybai.Caption = Intt1(i, 7)
End If
'余额元
If Intt1(i, 8) = "FF" Then
lyyuan.Caption = "-"
Else
lyyuan.Caption = Intt1(i, 8)
End If
'余额分
If Intt(i, 9) = "255" Then
lyfen.Caption = Intt1(i, 9)
Else
If Intt1(i, 9) < 10 Then
lyfen.Caption = "0" & Intt1(i, 9)
Else
lyfen.Caption = Intt1(i, 9)
End If
End If
'消费额元
lxyuan.Caption = Intt1(i, 10)
'消费额分
If Intt(i, 11) = "255" Then
lxfen.Caption = Intt1(i, 11)
Else
If Intt1(i, 11) < 10 Then
lxfen.Caption = "0" & Intt1(i, 11)
Else
lxfen.Caption = Intt1(i, 11)
End If
End If
Data8.Recordset.Update
DoEvents
Next i