Сравнить элементы БД Visual Studio C++
Добавлено: 07 окт 2017, 14:17
Здравствуйте,как можно сравнить ячейки с БД если я их засунул в переменные.
str1 = dataGridView1->Rows[0]->Cells[1]->FormattedValue->ToString();
str2 = dataGridView1->Rows[0]->Cells[2]->FormattedValue->ToString();
str3 = dataGridView1->Rows[0]->Cells[3]->FormattedValue->ToString();
str4 = dataGridView1->Rows[0]->Cells[4]->FormattedValue->ToString();
str5 = dataGridView1->Rows[0]->Cells[5]->FormattedValue->ToString();
label1->Text = str1;
radioButton1->Text = str2;
radioButton2->Text = str3;
radioButton3->Text = str4;
str1 = dataGridView1->Rows[0]->Cells[1]->FormattedValue->ToString();
str2 = dataGridView1->Rows[0]->Cells[2]->FormattedValue->ToString();
str3 = dataGridView1->Rows[0]->Cells[3]->FormattedValue->ToString();
str4 = dataGridView1->Rows[0]->Cells[4]->FormattedValue->ToString();
str5 = dataGridView1->Rows[0]->Cells[5]->FormattedValue->ToString();
label1->Text = str1;
radioButton1->Text = str2;
radioButton2->Text = str3;
radioButton3->Text = str4;