10-26-2013, 07:02 AM
Woops! So the problem here lies in the fact that when scanning through a list of objects, the last object is (.Length - 1), thus, in your for loop
[code2=vbnet]For i = 0 To (s.Length - remainder) Step 4[/code2]
You are scanning 1 object over the end of the array. To prevent this, you can simply tag on a "- 1". Like so:
[code2=vbnet]For i = 0 To (s.Length - remainder - 1) Step 4[/code2]
And that should fix everything, if not, let me know!
And the new VB.NET Syntax is as follows
[code2=vbnet]For i = 0 To (s.Length - remainder) Step 4[/code2]
You are scanning 1 object over the end of the array. To prevent this, you can simply tag on a "- 1". Like so:
[code2=vbnet]For i = 0 To (s.Length - remainder - 1) Step 4[/code2]
And that should fix everything, if not, let me know!
And the new VB.NET Syntax is as follows
Code:
[code2=vbnet]CODE[/code2]