Visual Basic 2005

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

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


Damned if I can figure out the equivalent in 2005.
Question by:brammo
  • 2
  • 2
LVL 142

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?

Author Comment

ID: 22827306
LVL 142

Accepted Solution

Guy Hengel [angelIII / a3] earned 50 total points
ID: 22827369
you mean:

yourdataset.Tables(0).Rows(0)("FieldInTable")   should return the first row's value...

If I remember correctly...

Open in new window


Author Closing Comment

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

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
It’s quite interesting for me as I worked with Excel using 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 …
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

747 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

14 Experts available now in Live!

Get 1:1 Help Now