a syntax question?
-
Hi to all, I am trying to change a boolean field in an Access database table.
DataRow[] selectRows = dscurr1.Tables["currlist"].Select("curr='true'"); foreach (DataRow myRow in selectRows) { idx = Convert.ToInt32(myRow["notableID"]); }
This locates the index to the row that has the only boolean True row in this small table, but now I need to change it to False and realize I need to use an indexer to the DataRow but am lost as to how it should be laid out syntacically. Regards, Bill Antonacchio -
Hi to all, I am trying to change a boolean field in an Access database table.
DataRow[] selectRows = dscurr1.Tables["currlist"].Select("curr='true'"); foreach (DataRow myRow in selectRows) { idx = Convert.ToInt32(myRow["notableID"]); }
This locates the index to the row that has the only boolean True row in this small table, but now I need to change it to False and realize I need to use an indexer to the DataRow but am lost as to how it should be laid out syntacically. Regards, Bill AntonacchioJust use
myRow["curr"] = false
. If this isn't what you're asking about, please rephrase your question.Microsoft MVP, Visual C# My Articles