B
bob garbados
How would I go about filling this class with name/value pairs?
Public Class IGSParameter
Public Name() As String
Public Value() As String
End Class
I thought it would be done by the following code:
Dim igsInput as IgsParameter
igsInput = new IgsParameter
igsInput.Name(0) = "name"
igsInput.Value(0) = "value"
But it generates the error Object reference not set to an instance of an
object.
Public Class IGSParameter
Public Name() As String
Public Value() As String
End Class
I thought it would be done by the following code:
Dim igsInput as IgsParameter
igsInput = new IgsParameter
igsInput.Name(0) = "name"
igsInput.Value(0) = "value"
But it generates the error Object reference not set to an instance of an
object.