Solved

How to read data from  a function returning dataset

Posted on 2004-09-29
5
162 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

737 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