Translation to vb from C# ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob

    #1

    Translation to vb from C# ?

    Can someone translate for me please ?

    foreach(XmlNode itemnode in XmlDoc.GetEleme ntByTagName("it em"))
    {
    XmlNode iNode = itemnode.FirstC hild;

    if (iNode.FirstChi ld.Value == "101")

    {
    iNode= iNode.NextSibli ng;
    iNode.FirstChil d
    }
    }


  • Claes Bergefall

    #2
    Re: Translation to vb from C# ?

    Something like this:

    For Each itemnode As XmlNode In XmlDoc.GetEleme ntByTagName("it em")
    Dim iNode As XmlNode = itemnode.FirstC hild;
    If iNode.FirstChil d.Value = "101" Then
    iNode = iNode.NextSibli ng
    iNode.FirstChil d
    End If
    Next

    /claes

    "Rob" <rwchome@comcas t.net> wrote in message
    news:ZKKdnRWmub bOdezZRVn-tQ@comcast.com. ..[color=blue]
    > Can someone translate for me please ?
    >
    > foreach(XmlNode itemnode in XmlDoc.GetEleme ntByTagName("it em"))
    > {
    > XmlNode iNode = itemnode.FirstC hild;
    >
    > if (iNode.FirstChi ld.Value == "101")
    >
    > {
    > iNode= iNode.NextSibli ng;
    > iNode.FirstChil d
    > }
    > }
    >[/color]


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Translation to vb from C# ?

      "Rob" <rwchome@comcas t.net> schrieb:[color=blue]
      > Can someone translate for me please ?[/color]

      Converting code between .NET programming languages
      <URL:http://dotnet.mvps.org/dotnet/faqs/?id=languagecon verters&lang=en >

      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://classicvb.org/petition/>

      Comment

      Working...