Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

reader List change value

Posted on 2013-12-31
3
Medium Priority
?
268 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

636 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