TStringList怎么存放数据
TStringList如何存放数据
我想把ComboBox里的列表内容,存放到MyDropDownList里,这样写有错吗?
------解决方案--------------------
MyDropDownList->Add(ComboBox1->Items->Strings[i]);
TStringList *MyDropDownList = new TStringList();
for(int j =0;j<ComboBox1->Items->Count;j++)
MyDropDownList->Strings[j] = ComboBox1->Items->Strings[j];
我想把ComboBox里的列表内容,存放到MyDropDownList里,这样写有错吗?
------解决方案--------------------
MyDropDownList->Add(ComboBox1->Items->Strings[i]);