I'm currently writing the inner text of an XML node to a string variable like this:
This is working fine. Now I'm needing to write the inner text of an XML node to an arrayCode:public MCO as string MCO = node.SelectSingleNode(xml_subsPlanNode).InnerText
I've tried searching online and not found any answer that makes any sort of sense to me. What am I doing wrong here?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
Why is making my variable into a string array preventing me from storing data in it?




Reply With Quote
