Il faut donc la vider de la même facon :
private void Suppression(int TonID, TonObjConnexion conn)
{
OdbcCommand cmd = new OdbcCommand("DELETE utilisateurs where nom_utils =TonID , conn);
conn.ExecuteNonQuery(cmd);//...un truc du genre
cmd.Dispose();
}
private void TaFonction()
{
ArrayList ListeValue = new ArrayList();
foreach(Item _Item in this.TaListBox.Items)
{
if (_Item.Selected)
{
Suppresion(_Item.Value);
}
}
}
Partager