Well I found out what was wrong, I was using .Length( ) instead of .Length
I'm trying to get the length of content of an XML node using this code currently:
But VS is complaining about .Length() withCode:if ( Convert.ToString(oXML.SelectSingleNode(oDoc, buildString)).Length() > 0 ) { sMailMessage += "class" + strCount + nodeEnd + " = " + Convert.ToString(oXML.SelectSingleNode(oDoc, buildString)) + "\n"; }
What am I doing wrong, and is there a simple way to get the length without copying the data out of the XML node into a variable beforehand?Code:'string.Length' denotes a 'property' where a 'method' was expected



LinkBack URL
About LinkBacks


