Say I have a table and I want to parse it's data. For example, table abc has a column called Seq. I want to parse through the column Seq to see if there are any irregularities. Example: if there's a number > 10 I want to let the user know.
I'm getting 2 errors, one regarding the data type and another regarding my list. What I plan to do with the list is to use it to display the irregularities to the user through a message box,
I don't know much syntax at all So here's what I think:
string sql4 = "select * from abc";
SQLiteCommand command = new SQLiteCommand(sql4, sqlite_conn);
SQLiteDataReader reader = command.ExecuteReader();
Convert.ToInt32(reader);
while (reader.Read())
{
if (reader["Seq"] > 30) // Getting error: operator cannot be applied to
// type objects and int
{
Parse1.Add(reader["Seq"]);
// Another error saying that the best overloaded method for the string type int
// Has some invalid arguments
}
}
private void button7_Click(object sender, EventArgs e)
{
foreach (object o in Parse1)
{
MessageBox.Show(o.ToString());
}
}