I set a break point to look at my codes process and I see a weird situation:
Dim intDDL As Int32
intDDL = ddl.SelectedIndex (intDDL gets 2 in here)
If intDDL > 1 Then
ElseIf intDDL < 1 Then
I see intDDL is 2 and My app goes in to codes1 and codes3, it should just go to codes1.
And I remove intDDL = ddl.SelectedIndex from codes, then intDDL will not be assigned any value, but I still see intDDL = 2 in there and step to codes1 and codes3. Application should pop up an error message say null reference!
Does anyone know what could I do?
View Complete Post