?
Solved

reader List change value

Posted on 2013-12-31
3
Medium Priority
?
264 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:Seven price
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 1500 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:Seven price
ID: 39751444
Yes
0
 
LVL 9

Author Closing Comment

by:Seven price
ID: 39751697
never mind, but thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

777 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