non-negative and less than the size of the collection
Posted on 2011-09-29
When the loop starts, I got the following error.
"Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"
Private Shared MAXLENGTH As Integer = 94
Public Shared SPACE As Byte = CByte(&H20)
Private strBuilder As StringBuilder
Me.strBuilder = New StringBuilder(Record.MAXLENGTH)
For i = 0 To Me.strBuilder.Capacity - 1
Me.strBuilder(i) = ChrW(Record.SPACE)