Solved

How to read data from  a function returning dataset

Posted on 2004-09-29
5
159 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

777 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