I'm trying to consume a web service and am having a problem with one part. Basically when trying to set a value to an array I get the above error.
Basically I'm placing an order and within there I have to specify a product and its sub components. Although I can add the product fine its the sub components I'm having an issue with.
My Code below:
Dim Prod As New Product
Prod.ProductCode = "1234"
Prod.ProductName = "Thing"
Dim Comp_Cont As New ComponentContainer
Comp_Cont.ComponentContainerCode = "4321"
Prod.ComponentContainer(0) = Comp_Cont
I guess the question is how do I add my record to the array?