Solved

How to read data from  a function returning dataset

Posted on 2004-09-29
5
158 Views
Last Modified: 2010-04-23
hi

i have a web service with the folloing function

    Public Function getStatement(ByVal StartDate As String, ByVal FinishDate As String, ByVal UID As String, ByVal TID As  String) As System.Data.DataSet
            Dim results() As Object = Me.Invoke("getStatement", New Object() {StartDate, FinishDate, UID, TID})
            Return CType(results(0),System.Data.DataSet)
        End Function

1. how can i call this function
2. and after calling how can i read the data from the returned value

thanks
0
Comment
Question by:gajender_99
5 Comments
 
LVL 25

Accepted Solution

by:
RonaldBiemans earned 75 total points
ID: 12179821
dim ds as dataset = getstatement("11/11/2004","12/12/2004","youruid",yourTID")

then read the dataset like you would any other
0
 
LVL 8

Assisted Solution

by:bramsquad
bramsquad earned 75 total points
ID: 12179840
Dim StartDate As String = "01/01/2004"
Dim FinishDate As String = "01/31/2004"
Dim UID As String = "USER1"
Dim TID As String = "SOMETHING"

Dim ds As New DataSet

ds = getStatement(StartDate, FinishDate, UID, TID)

now ds will hold your dataset

~b
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
System32Int Error 8 55
Protecting vb6 & .Net code Obfuscation 18 94
scanning dentists xray (the small ones) 3 43
Web Form VB.Net  import CSV 4 21
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now