What's wrong with this code?
The idea is that it gets all the items from the table, sends them, then deletes them and updates the table with new deletes.
It gives an error about no corresponding delete statement when a dataset contains deletes (???)
[This message was edited by russ-iha on February 17, 2002 at 03:28.]
code:<HR>Code:Dim dbSet As New Data.DataSet() dbAdapter.Fill(dbSet, "WAITING")<P> For t = 0 To dbSet.Tables("WAITING").Rows.Count - 1 SendMsgToClient(myClient, dbSet.Tables("WAITING").Rows(t).Item("ID"), _ dbSet.Tables("WAITING").Rows(t).Item("data")) dbSet.Tables("WAITING").Rows(t).Delete() Next<P> dbAdapter.Update(dbSet, "WAITING") dbAdapter.Dispose()
The idea is that it gets all the items from the table, sends them, then deletes them and updates the table with new deletes.
It gives an error about no corresponding delete statement when a dataset contains deletes (???)
[This message was edited by russ-iha on February 17, 2002 at 03:28.]