I need the following C# code converting to VB - InfoPath Dev
in

InfoPath Dev

I need the following C# code converting to VB

Last post 09-25-2008 02:16 PM by amar_dv18. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-15-2008 01:06 PM

    I need the following C# code converting to VB

    Hi,

    I found the following C# example code on this site. I'm trying to do something very similar with an InfoPath template but it must be done using VB. Can anyone give me the equivilant code using VB syntax?

    XPathNavigator field2 = e.Source.SelectSingleNode("my:field2", NamespaceManager);

    MessageBox.Show(field2.Value);
     

    Thanks.

  • 09-18-2008 03:15 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: I need the following C# code converting to VB

    Hello,

    Here is the below code to get the field,

    Dim xPathNavigator As XPathNavigator = e.Source.SelectSingleNode("my:field2", Me.NamespaceManager)

  • 09-25-2008 02:16 PM In reply to

    Re: I need the following C# code converting to VB

    Just in case you need it in future

    Google with the keyword convert C# to VB and you will get a conversion tool

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.