Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Polis polis2(globalPolis);
for (int row = 0; row < dataGridView1->Rows->Count; ++row) {
// Получаем имя и значение из текущей строки
String^ name = dataGridView1->Rows[row]->Cells["NameColumn"]->Value->ToString();
std::string name2 = StrToString(name);
// Преобразование нового значения в int с обработкой исключений
int newValue = 0;
try {
newValue = Convert::ToInt32(dataGridView1->Rows[row]->Cells["ValueColumn"]->Value);
}
catch (FormatException^ ex) {
MessageBox::Show("Invalid number format.");
continue; // Пропустить эту строку и продолжить с остальными
}
}