hi can you any one help me to correct error
i using c# write private function no error get but not get correct result when debugging
this is my code
this message appear
i using c# write private function no error get but not get correct result when debugging
this is my code
C#:
[LIST=1]
[*][COLOR=purple][B]using[/B][/COLOR] System;
[*][COLOR=purple][B]using[/B][/COLOR] System.Collections.Generic;
[*][COLOR=purple][B]using[/B][/COLOR] System.ComponentModel;
[*][COLOR=purple][B]using[/B][/COLOR] System.Data;
[*][COLOR=purple][B]using[/B][/COLOR] System.Drawing;
[*][COLOR=purple][B]using[/B][/COLOR] System.Linq;
[*][COLOR=purple][B]using[/B][/COLOR] System.Text;
[*][COLOR=purple][B]using[/B][/COLOR] System.Windows.Forms;
[*][COLOR=purple][B]using[/B][/COLOR] System.Data.OleDb;
[*]
[*][COLOR=purple][B]namespace[/B][/COLOR] WindowsFormsApplication1
[*][COLOR=gray][B]{[/B][/COLOR]
[*] [COLOR=purple][B]public[/B][/COLOR] partial [COLOR=purple][B]class[/B][/COLOR] Form4 : Form
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] System.Data.OleDb.OleDbConnection con;
[*] DataSet ds1;
[*] System.Data.OleDb.OleDbDataAdapter da, d1, d2, d3;
[*]
[*] [COLOR=purple][B]String[/B][/COLOR] a1, a2, a3, a4, a5, a6, a7, a8, b1, b2, b3, b4, b5, b6, b7, b8, c1, c2, c3, c4, c5, c6, c7, c8;
[*] [COLOR=purple][B]int[/B][/COLOR] MaxRows = [COLOR=red]0[/COLOR];
[*] [COLOR=purple][B]int[/B][/COLOR] inc = [COLOR=red]0[/COLOR];
[*] [COLOR=purple][B]public[/B][/COLOR] Form4[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] InitializeComponent[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=gray][B]}[/B][/COLOR]
[*]
[*] [COLOR=purple][B]private[/B][/COLOR] [COLOR=purple][B]void[/B][/COLOR] Button1_Click[COLOR=gray][B]([/B][/COLOR][COLOR=purple][B]object[/B][/COLOR] sender, EventArgs e[COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]inc != [COLOR=red]0[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] inc = [COLOR=red]0[/COLOR];
[*] NavigateRecords[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=gray][B]}[/B][/COLOR]
[*] [COLOR=gray][B]}[/B][/COLOR]
[*]
[*] [COLOR=purple][B]private[/B][/COLOR] [COLOR=purple][B]void[/B][/COLOR] Button9_Click[COLOR=gray][B]([/B][/COLOR][COLOR=purple][B]object[/B][/COLOR] sender, EventArgs e[COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]inc != MaxRows - [COLOR=red]1[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] inc++;
[*] NavigateRecords[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=gray][B]}[/B][/COLOR]
[*] [COLOR=purple][B]else[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] MessageBox.Show[COLOR=gray][B]([/B][/COLOR][COLOR=blue]"لا يوجد المزيد من السجلات"[/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=gray][B]}[/B][/COLOR]
[*] [COLOR=gray][B]}[/B][/COLOR]
[*]
[*] [COLOR=purple][B]private[/B][/COLOR] [COLOR=purple][B]void[/B][/COLOR] Button10_Click[COLOR=gray][B]([/B][/COLOR][COLOR=purple][B]object[/B][/COLOR] sender, EventArgs e[COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]inc > [COLOR=red]0[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] inc--;
[*] NavigateRecords[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=gray][B]}[/B][/COLOR]
[*] [COLOR=purple][B]else[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] MessageBox.Show[COLOR=gray][B]([/B][/COLOR][COLOR=blue]"السجل الأول"[/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=gray][B]}[/B][/COLOR]
[*] [COLOR=gray][B]}[/B][/COLOR]
[*]
[*] [COLOR=purple][B]private[/B][/COLOR] [COLOR=purple][B]void[/B][/COLOR] Button2_Click[COLOR=gray][B]([/B][/COLOR][COLOR=purple][B]object[/B][/COLOR] sender, EventArgs e[COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]inc != MaxRows - [COLOR=red]1[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] inc = MaxRows - [COLOR=red]1[/COLOR];
[*] NavigateRecords[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=gray][B]}[/B][/COLOR]
[*] [COLOR=gray][B]}[/B][/COLOR]
[*]
[*] [COLOR=purple][B]private[/B][/COLOR] [COLOR=purple][B]void[/B][/COLOR] Button11_Click[COLOR=gray][B]([/B][/COLOR][COLOR=purple][B]object[/B][/COLOR] sender, EventArgs e[COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] Form1 f1 = [COLOR=purple][B]new[/B][/COLOR] Form1[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=purple][B]this[/B][/COLOR].Close[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] f1.Show[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=gray][B]}[/B][/COLOR]
[*]
[*] [COLOR=purple][B]private[/B][/COLOR] [COLOR=purple][B]void[/B][/COLOR] button5_Click[COLOR=gray][B]([/B][/COLOR][COLOR=purple][B]object[/B][/COLOR] sender, EventArgs e[COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] Application.Exit[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=gray][B]}[/B][/COLOR]
[*]
[*] [COLOR=purple][B]private[/B][/COLOR] [COLOR=purple][B]void[/B][/COLOR] Form4_Load[COLOR=gray][B]([/B][/COLOR][COLOR=purple][B]object[/B][/COLOR] sender, EventArgs e[COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] con = [COLOR=purple][B]new[/B][/COLOR] System.Data.OleDb.OleDbConnection[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] con.ConnectionString = [COLOR=blue]"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|/data.mdb"[/COLOR];
[*] ds1 = [COLOR=purple][B]new[/B][/COLOR] DataSet[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] con.Open[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=purple][B]String[/B][/COLOR] sql = [COLOR=blue]"SELECT * From programs"[/COLOR];
[*] [COLOR=purple][B]String[/B][/COLOR] s = [COLOR=blue]"SELECT * From student "[/COLOR];
[*] [COLOR=purple][B]String[/B][/COLOR] s1 = [COLOR=blue]"SELECT * From student_info "[/COLOR];
[*] [COLOR=purple][B]String[/B][/COLOR] s2 = [COLOR=blue]"SELECT * From student_program "[/COLOR];
[*] da = [COLOR=purple][B]new[/B][/COLOR] System.Data.OleDb.OleDbDataAdapter[COLOR=gray][B]([/B][/COLOR]sql, con[COLOR=gray][B])[/B][/COLOR];
[*] d1 = [COLOR=purple][B]new[/B][/COLOR] System.Data.OleDb.OleDbDataAdapter[COLOR=gray][B]([/B][/COLOR]s, con[COLOR=gray][B])[/B][/COLOR];
[*] d2 = [COLOR=purple][B]new[/B][/COLOR] System.Data.OleDb.OleDbDataAdapter[COLOR=gray][B]([/B][/COLOR]s1, con[COLOR=gray][B])[/B][/COLOR];
[*] d3 = [COLOR=purple][B]new[/B][/COLOR] System.Data.OleDb.OleDbDataAdapter[COLOR=gray][B]([/B][/COLOR]s2, con[COLOR=gray][B])[/B][/COLOR];
[*] d3.Fill[COLOR=gray][B]([/B][/COLOR]ds1, [COLOR=blue]"supervisor"[/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] d2.Fill[COLOR=gray][B]([/B][/COLOR]ds1, [COLOR=blue]"student_olympic"[/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] d1.Fill[COLOR=gray][B]([/B][/COLOR]ds1, [COLOR=blue]"olympic_school"[/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] da.Fill[COLOR=gray][B]([/B][/COLOR]ds1, [COLOR=blue]"olympiccomp"[/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] NavigateRecords[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] MaxRows = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows.Count;
[*] [COLOR=gray][B]}[/B][/COLOR]
[*] [COLOR=purple][B]private[/B][/COLOR] [COLOR=purple][B]void[/B][/COLOR] NavigateRecords[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] [COLOR=gray][B]{[/B][/COLOR]
[*] [COLOR=green]//DataRow dRow = ds1.Tables["student"].Rows[inc];[/COLOR]
[*] DataRow dRow = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR];
[*] textBox9.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"programs"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]0[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] textBox17.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"programs"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]1[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] ComboBox2.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"programs"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]2[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] TextBox7.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student_info"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]1[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] textBox1.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student_info"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]2[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] ComboBox5.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student_info"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]3[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] TextBox12.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student_info"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]4[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] TextBox14.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student_info"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]5[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=green]//from student table[/COLOR]
[*] TextBox6.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]0[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] a1 = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]1[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a1 == RadioButton9.Text[COLOR=gray][B])[/B][/COLOR]
[*] RadioButton9.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]true[/B][/COLOR];
[*] [COLOR=purple][B]else[/B][/COLOR] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a1 == RadioButton10.Text[COLOR=gray][B])[/B][/COLOR]
[*] RadioButton10.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]true[/B][/COLOR];
[*] TextBox24.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]2[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] TextBox8.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]3[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] TextBox25.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]4[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] TextBox13.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]5[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] TextBox11.Text = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]6[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] a2 = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]7[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a2 == [COLOR=blue]"نعم"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox11.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]true[/B][/COLOR];
[*] [COLOR=purple][B]else[/B][/COLOR] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a2 == [COLOR=blue]"لا"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox11.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]false[/B][/COLOR];
[*] a3 = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]8[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a3 == [COLOR=blue]"نعم"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox12.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]true[/B][/COLOR];
[*] [COLOR=purple][B]else[/B][/COLOR] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a3 == [COLOR=blue]"لا"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox12.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]false[/B][/COLOR];
[*] a4 = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]9[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a4 == [COLOR=blue]"نعم"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox13.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]true[/B][/COLOR];
[*] [COLOR=purple][B]else[/B][/COLOR] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a4 == [COLOR=blue]"لا"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox13.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]false[/B][/COLOR];
[*] a5 = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]10[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a5 == [COLOR=blue]"نعم"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox14.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]true[/B][/COLOR];
[*] [COLOR=purple][B]else[/B][/COLOR] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a5 == [COLOR=blue]"لا"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox14.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]false[/B][/COLOR];
[*] a6 = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]11[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a6 == [COLOR=blue]"نعم"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox18.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]true[/B][/COLOR];
[*] [COLOR=purple][B]else[/B][/COLOR] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a6 == [COLOR=blue]"لا"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox18.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]false[/B][/COLOR];
[*] a7 = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]12[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a7 == [COLOR=blue]"نعم"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox17.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]true[/B][/COLOR];
[*] [COLOR=purple][B]else[/B][/COLOR] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a7 == [COLOR=blue]"لا"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox17.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]false[/B][/COLOR];
[*] a8 = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]13[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a8 == [COLOR=blue]"نعم"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox15.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]true[/B][/COLOR];
[*] [COLOR=purple][B]else[/B][/COLOR] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]a8 == [COLOR=blue]"لا"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox15.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]false[/B][/COLOR];
[*] b1 = ds1.Tables[COLOR=gray][B][[/B][/COLOR][COLOR=blue]"student"[/COLOR][COLOR=gray][B]][/B][/COLOR].Rows[COLOR=gray][B][[/B][/COLOR]inc[COLOR=gray][B]][/B][/COLOR].ItemArray.GetValue[COLOR=gray][B]([/B][/COLOR][COLOR=red]14[/COLOR][COLOR=gray][B])[/B][/COLOR].ToString[COLOR=gray][B]([/B][/COLOR][COLOR=gray][B])[/B][/COLOR];
[*] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]b1 == [COLOR=blue]"نعم"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox16.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]true[/B][/COLOR];
[*] [COLOR=purple][B]else[/B][/COLOR] [COLOR=purple][B]if[/B][/COLOR] [COLOR=gray][B]([/B][/COLOR]b1 == [COLOR=blue]"لا"[/COLOR][COLOR=gray][B])[/B][/COLOR]
[*] CheckBox16.[COLOR=purple][B]Checked[/B][/COLOR] = [COLOR=purple][B]false[/B][/COLOR];
[*]
[*] [COLOR=gray][B]}[/B][/COLOR]
[*][COLOR=gray][B]}[/B][/COLOR]
[/LIST]
this message appear