• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 668
  • Last Modified:

VB6 to VB2008 conversion ADO field issue (.value)

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
onemorecoke
Asked:
onemorecoke
1 Solution
 
Paul JacksonSoftware EngineerCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now