Home > Back-end >  Consult how to C Builder in the value of the selected in CheckListBox each assigned to a string with
Consult how to C Builder in the value of the selected in CheckListBox each assigned to a string with

Time:09-21

Ask how CheckListBox selected the value of each of the c + + Builder is assigned to a string with a carriage return? After I do the selected three, through only one all the time, thank you!

CodePudding user response:

Fyi:
 void __fastcall TForm1: : Button1Click (TObject * Sender) 
{
Memo1 - & gt; Lines - & gt; The Clear ();
for(int i=0; I{
If (CheckListBox1 - & gt; Checked [I])
Memo1 - & gt; Lines - & gt; Add (CheckListBox1 - & gt; The Items - & gt; Strings [I]);
}
}

You use an AnsiString + + "\ n",
  • Related