General information
Category:
Coding, syntax and commands
Title:
Storing value to property array
Environment versions
Network:
Windows 2003 Server
I am trying to upload some data to a WebService, I need to create an instance of an object and set it's properties.
The parent object has a .message property which is a one dimensional array of MessageObjects. I have successfully created my MessageObject but can't find out how to store it into the .message array I thought it should be ;
ParentObject.message(0) = New MessageObjectClass
ParentObject.message(0) = myBuiltMessage
But I get an error that ParentObject.Message(0) is "Object reference not set to an instance of an object."
Somehow I need to dimension the message() array or in some way instantiate an element, I am new to .Net and not dealt with property arrays before, how can I do this?
Gary.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only