Solved

How to read data from  a function returning dataset

Posted on 2004-09-29
5
157 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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

772 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

11 Experts available now in Live!

Get 1:1 Help Now