It is erasing 8302
[php]
Dim Str As String = "30363738354244432030303030303032"
Dim isSpace As Boolean
Dim finalStr As String = ""
isSpace = True
For i As Integer = 1 To Str.Length
If i Mod 8 = 0 Then
If Mid(Str, i, 1) = " " Then
If isSpace = True Then
finalStr += vbCrLf
isSpace = False
Continue For
Else
finalStr += " "
isSpace = True
Continue For
End If
Else
finalStr += Mid(Str, i, 1)
End If
End If
Next
[/php]
If you run that, you will see the result.
Hmmm, Trying to figure out why.
Code looks "ok" to me......
I'm still confused though, don't you want the 0's at the end of the string ?
[php]
Dim Str As String = "30363738354244432030303030303032"
Dim isSpace As Boolean
Dim finalStr As String = ""
isSpace = True
For i As Integer = 1 To Str.Length
If i Mod 8 = 0 Then
If Mid(Str, i, 1) = " " Then
If isSpace = True Then
finalStr += vbCrLf
isSpace = False
Continue For
Else
finalStr += " "
isSpace = True
Continue For
End If
Else
finalStr += Mid(Str, i, 1)
End If
End If
Next
[/php]
If you run that, you will see the result.
Hmmm, Trying to figure out why.
Code looks "ok" to me......
I'm still confused though, don't you want the 0's at the end of the string ?

) lol