Solved

VB6 to VB2008 conversion ADO field issue (.value)

Posted on 2011-02-23
1
655 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 500 total points
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 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

15 Experts available now in Live!

Get 1:1 Help Now