Link to home
Start Free TrialLog in
Avatar of Robb Hill
Robb HillFlag for United States of America

asked on

Console App: Outputting a dataset

How would you write from a console application the ability to return mulitiple values....

Here is what I have:  

I am consuming a webservice that returns a dataset.
this line of code in the following function doesnt work because the proxy returns a dataset...how would I write a console to handle  this..  when I consume it in a web app I just pass it to a grid view...

Dim result As String = proxy.GetFacilityID(9)


----->mycode
Module Consumer

    Private Sub Main(ByVal args() As String)
        Dim proxy As New MyServiceClient
        Dim dc As New DataContract1

        dc.CustID = 9
        Dim result As String = proxy.GetFacilityID(9)


        Console.WriteLine(result)
        Console.WriteLine("Press <enter> to exit...")
        Console.ReadLine()
    End Sub



End Module
ASKER CERTIFIED SOLUTION
Avatar of TSmooth
TSmooth

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial