oooh! now i get it!
mpvkrishnadhar
Posts
-
jagged array error message -
jagged array error messageoops! that was a typo mistake! i was asking about the first error message!
-
jagged array error messagehi learned jagged array today and was working with them! came across two error messages int [][]j1=new int[][]; now i get two error messages displayed 1) when i keep my cursor/pointer on the new int part then i get to see the following error message "Wrong number of indices inside[];excepted1" 2) when i keep my cursor/pointer on the indices then the following error message is displayed "Array creation must have array size or array "initializer". 2nd error message is pretty straight forward as it explains about the need to declare an array(row) size or initialize the(row)array in case of JAGGED ARRAYS my question here is what is the meaning of the first error message;
-
how to take a table name from a text box!ooh! but if i use comboboxstyle with allowable table names! the whole purpose of what i wanted would not be served! is there any way by which it can be done! ? but thank u very much for the suggestion mate! am seriously learning a lot from this!
-
how to take a table name from a text box!hi AHSAN111! thanks for the reply mate! the first and the second parts that u explained are working fine for me! this is how my new code looks like! try { string constr = "User Id = scott;Password=tiger;Provider=Msdaora.1"; OleDbConnection con = new OleDbConnection(constr); con.Open(); MessageBox.Show(" Connected to ORACLE!"); string g = textBox1.Text; string q = "create table " +g+ "(enum number,ename varchar2(10),sal number)"; OleDbCommand cmd = new OleDbCommand(q, con); cmd.ExecuteNonQuery(); MessageBox.Show("Table Created!"); }
-
how to take a table name from a text box!was that an anwswer! its looking like something else!
-
how to take a table name from a text box!hi i designed my form as textbox, button now in the buttonclick event i wrote a code which is as follows! try { string constr = "User Id = scott;Password=tiger;Provider=Msdaora.1"; OleDbConnection con = new OleDbConnection(constr); con.Open(); MessageBox.Show(" Connected to ORACLE!"); string q = "create table pert(enum number,ename varchar2(10),sal number)"; OleDbCommand cmd = new OleDbCommand(q, con); cmd.ExecuteNonQuery(); MessageBox.Show("Table Created!"); } catch (OleDbException a) { MessageBox.Show(a.Message); } now in the string q how do i add a textbox1.text so that while running my program i give the table name dynamically instead of statistically mentioning the table name as shown in the string q.