locked
C# array to VB / Web Service RRS feed

  • Question

  • User-1788337297 posted

    I am reworking some C# code into a VB version. It sets up a class from the service and does some sort of array on the class.

    <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>C#:</o:p><o:p>OrderLineInfoType orderLineInfoType = new OrderLineInfoType();<o:p></o:p>

    OrderLineInfoType[] orderLineInfoType1=new OrderLineInfoType[1];

     

    VB:

    Dim OrderLineInfo As blah.blah.OrderLineInfoType = New blah.blah.OrderLineInfoType

    My issue is what the heck is that second array code all about and how do i write it.

    I have to pass that array back into the service.

     

    Any help would rock.

     

    -jason

    </o:p>
    Wednesday, September 3, 2008 2:39 PM

Answers

  • User-1788337297 posted

    Right on.. Thank you!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 3, 2008 3:23 PM

All replies

  • User1234629706 posted

    Dim orderLineInfoType1 As OrderLineInfoType() = New OrderLineInfoType(0) {}

    you can try this

    Wednesday, September 3, 2008 3:07 PM
  • User-1788337297 posted

    Right on.. Thank you!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 3, 2008 3:23 PM