Could someome please explain why I get the Error "Object reference not set to an instance of an object" in the following code ...
Dim InputFrom As String = ""
Dim Pos As Short = 0
For i As Int16 = 1 To 24
InputFrom = LineInput(Ch("QuestionAnswer"))
Pos = InStr(InputFrom, "/")
QuestionAnswer.Answer = Mid(InputFrom, Pos + 1)
QuestionAnswer.Question = InputFrom.Substring(0, Pos - 1)
SortedDict(QuestionAnswer.Answer) = QuestionAnswer.Question
The error occurs on the line begininng with SList.
The variables QuestionAnswer.Answer and QuestionAnswer.Question seem to be fine, in that hovering over them shows them to be correct.