bkmz B bkmz Регистрация 12 Авг 2013 Сообщения 77 Репутация 0 Спасибо 0 Монет 0 4 Окт 2016 #1 void__fastcall Tform1::CheckListBox1Click(TObject *Sender) { {int s; ListBox1->Clear(); For(int i=0; i=CheckListBox1>Items->Count-1;i++) if(CheckListBox1->Checked) ListBox1->Items->Add(CheckListBox1->Items); s=0; for(int i=0; i=ListBox1->Items->Count-1;i++) s++=StrToInt(ListBox1->Items) Label1->Caption="Сумма:" +IntToStr (s); If (s==50) {Label1->Caption="Сумма:" +IntToStr(s); CheckListBox1->Enabled=False; ListBox1->Enabled=False; } } }
void__fastcall Tform1::CheckListBox1Click(TObject *Sender) { {int s; ListBox1->Clear(); For(int i=0; i=CheckListBox1>Items->Count-1;i++) if(CheckListBox1->Checked) ListBox1->Items->Add(CheckListBox1->Items); s=0; for(int i=0; i=ListBox1->Items->Count-1;i++) s++=StrToInt(ListBox1->Items) Label1->Caption="Сумма:" +IntToStr (s); If (s==50) {Label1->Caption="Сумма:" +IntToStr(s); CheckListBox1->Enabled=False; ListBox1->Enabled=False; } } }
iya001 I iya001 Регистрация 26 Ноя 2017 Сообщения 10 Репутация 0 Спасибо 0 Монет 0 26 Ноя 2017 #2 Тут вряд ли тебе кто то поможет, иди на специализированные форумы Позитивный голос 0