typed dataset question

P

Patrick Sullivan

Hi,

I am trying to learn to use typed datasets with VB/ADO.Net 2003 and SQL
2000. I've looked at some examples from the 101 VB samples, specifically the
"how-to typed dataset" that shows two datasets, one regular and one typed.
When I try to do similar my code does not look the same:

the how-to sample says:
"Private tdsNorthwind As Northwind", then later "tdsNorthwind = New
Northwind()".

When I do "mytds AS tds" and then later, "mytds = New tds()" the VB editor
removes the (). I've seen weird behavior like this before in VB.Net, but it
was a while back, and it still seemed to work, from what I recall. But I am
a C programmer and it really seems weird to me that () can be removed and
still work. TIA!

Oh, also, what is a good source for learning MS's .Net typed datasets
syntax? The stuff I have seen in MSDN library and the 1010 samples is pretty
basic.
 
W

W.G. Ryan MVP

David Sceppa's ADO.NET Core reference has great discussion of them, as does
Sahil Malik's ADO.NET book.

Anyway, if you're in VB.NET - no worries about the () disappearing -- they
aren't necessary in this case.

HTH,

Bill
 
P

Patrick Sullivan

Thanks for the help William, I appreciate it. About the books, I was looking
this morning and saw both of those recommended.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top