Solved

reader List change value

Posted on 2013-12-31
3
247 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to picture file 3 41
Check if number is currency 15 29
Showdialog 8 21
Rolling back a sequence of stored procedures 12 28
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 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

18 Experts available now in Live!

Get 1:1 Help Now