I have the following code:
I get the syntax message "Variable 'mb' is used before it has been assigned a value" on the second line.Code:Dim mb() As String mb(0) = "xyz"
So I change it to
and the above message goes away but I get the run-time error "Object reference not set to an instance of an object".Code:Dim mb() As String = Nothing mb(0) = "xyz"
What to do?




Reply With Quote