Solved

Visual Basic 2005

Posted on 2008-10-28
4
166 Views
Last Modified: 2013-11-26
Making the painful transition from VB6.....

In VB6, returning a field value could be done like so:

SomeString$=datTable.recordset.fields("FieldInTable")

Damned if I can figure out the equivalent in 2005.
0
Comment
Question by:brammo
  • 2
  • 2
4 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22827292
how do you "query", right now?
with a datareader, or do you fill into a dataset/datatable?
0
 

Author Comment

by:brammo
ID: 22827306
TableAdapter
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 50 total points
ID: 22827369
you mean:
YourTableAdapter.Fill(yourdataset)
yourdataset.Tables(0).Rows(0)("FieldInTable")   should return the first row's value...
If I remember correctly...

Open in new window

0
 

Author Closing Comment

by:brammo
ID: 31510984
Thanks, it's a painful process......
0

Featured Post

Technology Partners: 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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

685 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