|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Translation to vb from C# ?Can someone translate for me please ?
foreach(XmlNode itemnode in XmlDoc.GetElementByTagName("item")) { XmlNode iNode = itemnode.FirstChild; if (iNode.FirstChild.Value == "101") { iNode= iNode.NextSibling; iNode.FirstChild } } Something like this:
For Each itemnode As XmlNode In XmlDoc.GetElementByTagName("item") Dim iNode As XmlNode = itemnode.FirstChild; If iNode.FirstChild.Value = "101" Then iNode = iNode.NextSibling iNode.FirstChild End If Next /claes Show quoteHide quote "Rob" <rwch***@comcast.net> wrote in message news:ZKKdnRWmubbOdezZRVn-tQ@comcast.com... > Can someone translate for me please ? > > foreach(XmlNode itemnode in XmlDoc.GetElementByTagName("item")) > { > XmlNode iNode = itemnode.FirstChild; > > if (iNode.FirstChild.Value == "101") > > { > iNode= iNode.NextSibling; > iNode.FirstChild > } > } > "Rob" <rwch***@comcast.net> schrieb: Converting code between .NET programming languages> Can someone translate for me please ? <URL:http://dotnet.mvps.org/dotnet/faqs/?id=languageconverters&lang=en> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
arrghh dot vs comma
How to have a clean exit But what about them hackers? Thread takes up 100% CPU Word automation version problem. Setting tab stops in RTF control Caret Hiding SortCompare of DataGridView - how to? Help: Control loops & properties in VB .Net 2005 converting a string to it's enum (integer) equivalent |
|||||||||||||||||||||||