?
Solved

Using xsd created from Data Sources

Posted on 2006-04-06
2
Medium Priority
?
724 Views
Last Modified: 2008-01-09
I have used Data Sources to create a xsd from a MDB table. I want to use the xsd as a datatype.

For example:

Dim Order as New OrderDataSet.OrderRow  ( where 'OrderDataSet' is a xsd created by Data Sources, so that I can refer to the columns like below )

Order.OrderNo = "#1"
Order.Date = "...."
....

However,  it shows this error "Argument not specified for parameter 'rb' of 'Friend Sub New(rb As System.Data.DataRowBuilder)" at the 'Dim Order....' statement!

So how can I use a xsd as a datatype to create a variable ?

0
Comment
Question by:tora111
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 1000 total points
ID: 16400156
When dealing with adding rows, you need to go through the DataTable to add a row.

This is an untyped DataSet example:
    Dim order As DataRow = table.NewRow()

With typed DataSet's the syntax is different.  It will be something like this:
   Dim order As OrderDataSet.OrderRow = OrderTable.NewOrderRow()

Bob
0
 

Author Comment

by:tora111
ID: 16400688
Thanks Bob !
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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Loops Section Overview
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

809 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