I'm currently writing the inner text of an XML node to a string variable like this:
Code:
public MCO as string
MCO = node.SelectSingleNode(xml_subsPlanNode).InnerText
This is working fine. Now I'm needing to write the inner text of an XML node to an array
Code:
Public MCO(20) as string
public MCOcount as integer = 0
MCO(MCOcount) = node.SelectSingleNode(xml_subsPlanNode).InnerText
'this line of code gives the error "Property 'Chars' is 'ReadOnly'"
MCOcount = MCOcount + 1
I've tried searching online and not found any answer that makes any sort of sense to me. What am I doing wrong here?
Why is making my variable into a string array preventing me from storing data in it?