Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB6 to VB2008 conversion ADO field issue (.value)

Posted on 2011-02-23
1
Medium Priority
?
663 Views
Last Modified: 2012-05-11
When I allowed VB2008 to convert my VB6 program, .Value was added to some of the field variables and others did not.  For instance, in the same section of the program, I had this:

rs("FirstName") was converted to rs.fields("FirstName")

but then a few lines down it added a .Value to a different column:

rs("LastName") was converted to rs.fields("LastName").Value

Do you know why this random-ness happened?

I know if VB6 if there was not a .Value on these it was implied, is that not the case in VB.NET?

Thanks

 
0
Comment
Question by:onemorecoke
1 Comment
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 2000 total points
ID: 34967048
No it is no longer the case, there are no default properties in VB.net so in fact all of the lines should have .Value added to them
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

885 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