D
Danno
Guest
I am trying to add some numbers to an array and I am getting an error. Here is the code:
And the error I get is:
"An unhandled exception of type System.NullReferenceException occurred in LoanAnalyzer.exe
Additional information: Object reference not set to an instance of an object."
What am I missing?
Code:
Dim rate(17) As ArrayList
Dim count As Short
Dim startRate As Single = 6.0
For count = 0 To 16
rate(count).Add(startRate)
startRate += 0.00125
lstDisplay.Items.Add(rate(count))
Next
And the error I get is:
"An unhandled exception of type System.NullReferenceException occurred in LoanAnalyzer.exe
Additional information: Object reference not set to an instance of an object."
What am I missing?