[CODE=vb]Private Sub cmdscan_Click()
Dim a As Long
a = arrByte(i)
For i = 49 To mFileSize
If a <> "4" Then
a = "4"
End If
i = i + 5
Next i
End Sub[/CODE]
this coding give error msg the subscript out of range.Actually i want to read bytes from 49 to end of file.if the byte 49 is 4 then just leave it abd if the value other than that i would like to change to 4.Using for loop mean every 5th value i would like to do same thing.What is the error with the this coding......
Dim a As Long
a = arrByte(i)
For i = 49 To mFileSize
If a <> "4" Then
a = "4"
End If
i = i + 5
Next i
End Sub[/CODE]
this coding give error msg the subscript out of range.Actually i want to read bytes from 49 to end of file.if the byte 49 is 4 then just leave it abd if the value other than that i would like to change to 4.Using for loop mean every 5th value i would like to do same thing.What is the error with the this coding......
Comment