string[] labels = new string[iNbProduits]; PointPairList list1 = new PointPairList(); double[] y = new double[iNbProduits]; //double[] y2 = new double[iNbProduits]; _bd.Command.CommandText = "SELECT `Nom`, `solde`" + "FROM Client"; _bd.Reader = _bd.Command.ExecuteReader(); // my problem is in this loop: for (int i=0; i<iNbProduits; i++) { if(_bd.Reader.Read()) { labels[i] = _bd.Reader["nom"].ToString(); // y[i]=double.Parse(_bd.Reader["solde"].ToString()); y[i]= Math.Sin( (double)_bd.Reader["solde"]); // here sharpdevelop underlines under (list1.Add(y[i]);) exact under list1 and y !! list1.Add(y[i]); //y2[i] = double.Parse(_bd.Reader["prixunitaire"].ToString()); }//if }//for i _bd.Reader.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)