igoussam
Messages postés2Date d'inscriptionmardi 13 juin 2017StatutMembreDernière intervention17 juin 2017
-
Modifié le 13 juin 2017 à 18:56
Whismeril
Messages postés18417Date d'inscriptionmardi 11 mars 2003StatutContributeurDernière intervention 8 juin 2023
-
13 juin 2017 à 17:07
Bonjour les amis j'ai un problème d'affichage dans un textbox apartir d'une requête SQL
voici mon code :
cn.Open();
SQLiteCommand cmd = new SQLiteCommand();
cmd.Connection = cn;
cmd.CommandText = " select conge.nombre_jour from contient,conge,ferier where contient.id_jours=ferier.id_jours and contient.id_conge=conge.id_conge and ferier.datejours not between conge.date_debut and conge.date_fin order by conge.id_conge desc limit 1 ";
SQLiteDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
textBox3.Text += string.Format("{0}\t\t{1}", dr.GetString(0)) + Environment.NewLine;
}
dr.Close();
cn.Close();
EDIT : Ajout des balises de code (la coloration syntaxique). Explications disponibles ici : ICI