Solved

reader List change value

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

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
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…

895 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