I have an object array containing objects with arrays. When i try to add another object later i get an error saying
'An exception of type 'System.MissingMemberException' occurred in
Microsoft.VisualBasic.dll but was not handled in user code
Additional information: Public member 'Add' on type 'Object()()' not found.'
And here is how i try to add new member
Dim data As Object = {
New Object() {"Year", "Sales", "Expenses"},
New Object() {"2004", 1000, 400},
New Object() {"2005", 1170, 460},
New Object() {"2006", 660, 1120},
New Object() {"2007", 1030, 540}
}
Dim newObj = New Object() {"2008", 1030, 540}
data.Add(newObj) 'here the error occures
I tried changing data to List(of Object) and then it worked but the format of List is not acceptable later (i send data to different api as json).
Probably it's easy issue but i'am kind of newbie :) Thanks for help in advance.