I am migrating code from VS2010 to VS2013 and my syntax in VS2010 shows compile errors in 13?!? Can someone assist me with why these two compile errors are being thrown?
Syntax error, ',' expected
{ expected
And this is the syntax that works w/o issue in 10.
public static string DCAVACA(string badTable)
{
olecon = new OleDbConnection(OLECONN)
{
olecon.Open();
deleteTable = new string[1] { "badTable" };
for (int q = deleteTable.GetLowerBound(0); q <= deleteTable.GetUpperBound(0); q++)
{
System.Data.OleDb.OleDbCommand cmd = new OleDbCommand("DROP TABLE " + deleteTable[q], olecon);
cmd.ExecuteNonQuery();
}
}
return null;
}