• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 665
  • 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 JacksonCommented:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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