Solved

VB6 to VB2008 conversion ADO field issue (.value)

Posted on 2011-02-23
1
656 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Check if number is currency 15 31
Get Count in a variable with 5 digits always 1 28
Help with Syntax 9 27
Close form "before" open 3 25
It’s quite interesting for me as I worked with Excel using vb.net 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 …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

17 Experts available now in Live!

Get 1:1 Help Now