This is my problem:
When i have more than 3 lines of text in de tempArray. Iget the following
message:
An unhandled exception of type 'System.NullReferenceException' occurred in
Allen's Woodshop.exe
Additional information: Object reference not set to an instance of an
object.
The program holds on the line:
'strItem=strTextline(intFormTotal).Split(";")'
I'm completly stuck at the moment, so i hope someone can help out of this
mess. Thankx a lot
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Dim strItem(3), strTempItem(3) As String
Dim myComp, Teller As Integer
counter = 0
For intFormTotal = 0 To strTextline.GetUpperBound(0)
strItem = strTextline(intFormTotal).Split(";")
strTempItem = tempArray(counter).Split(";")
myComp = StrComp(strItem(0), strTempItem(0),CompareMethod.Text)
If myComp = 0 Then
strItem(3) = strTempItem(3)
strTextline(intFormTotal) = Join(strItem, ";")
counter += 1
If tempArray.GetUpperBound(0) = counter Then
Exit For
End If
Else
strItem(3) = strItem(3)
strTextline(intFormTotal) = Join(strItem, ";")
If tempArray.GetUpperBound(0) = counter Then
Exit For
End If
End If
Next
FForm1.lstWoodshop.Items.Clear()
intFormTotal = 0
Do Until intFormTotal = 24
FForm1.lstWoodshop.Items.Add(strTextline(intFormTo tal))
intFormTotal += 1
Loop
End Sub