Solved

reader List change value

Posted on 2013-12-31
3
258 Views
Last Modified: 2014-01-02
I have a reader and in my watch i see the value I am looking for. When I get this value I am trying to change it.
 List<double> yValues = new List<double>();
                    List<string> xValues = new List<string>();
 while (myReader.Read())
                        {
                        
                           




                                    if (xValues.Any(attribute => Convert.ToString(xValues) == "0    "))
                                    {
                                        xValues.Add(Convert.ToString("00001"));
                                        yValues.Add(Convert.ToDouble("000021"));
                                    }
                                    else
                                    {
                                        xValues.Add(Convert.ToString(myReader[0]));
                                        yValues.Add(Convert.ToDouble(myReader[1]));
                                        ExplodedPointList.Items.Add((Convert.ToString(myReader[0])));
                                    }
                    
                          

                                
                          
                        }

Open in new window

0
Comment
Question by:sevensnake77
  • 2
3 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 39750231
What do you mean by "change it"?  Do you mean modify the value, and write back to the data source?
0
 
LVL 9

Author Comment

by:sevensnake77
ID: 39751444
Yes
0
 
LVL 9

Author Closing Comment

by:sevensnake77
ID: 39751697
never mind, but thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

789 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