第一次用,报错参数过多.请那位高手指教.procedure TForm1.BitBtn1Click(Sender: TObject);
var i: integer;
begin
for i:=0 to cxGrid2DBTableView1.ColumnCount-1 do
begin
cxCheckListBox1.Items.Clear;
cxCheckListBox1.Items.Add(Trim(cxGrid2DBTableView1.Columns[i].Caption)); //报错:too many actual parameters.
end;
end;
var i: integer;
begin
for i:=0 to cxGrid2DBTableView1.ColumnCount-1 do
begin
cxCheckListBox1.Items.Clear;
cxCheckListBox1.Items.Add(Trim(cxGrid2DBTableView1.Columns[i].Caption)); //报错:too many actual parameters.
end;
end;
var i:integer;
begin cxCheckListBox1.Items.Clear;
for i:=0 to cxGrid2DBTableView1.ColumnCount-1 do
begin
cxCheckListBox1.Items.Add;
cxCheckListBox1.Items.Items[i].text:=Trim(cxGrid2DBTableView1.Columns[i].Caption);
end;
end;