![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Объясните мне пожалуйста, [D6, WinXP]
anod © (2002-07-09 22:28:00)почему такой код работает:
procedure TForm4.SpeedButton1Click(Sender: TObject);, а такой - нет:
var i:integer;
begin
TextListBox1.Items.Add(edit1.Text);
if RadioButton1.Checked then begin
pd4sb[n].Clear;
for i:= 0 to TextListBox1.Count-1 do
pd4sb[n].Add(TextListBox1.Items.Strings[i]);
end;
end;
procedure TForm4.SpeedButton1Click(Sender: TObject);
var i:integer;
begin
TextListBox1.Items.Add(edit1.Text);
if RadioButton1.Checked then begin
pd4sb[n]:=TextListBox1.Items;
end;
end;
anod (2002-07-10 00:14:00) [1]Спасибо.
Gonza (2002-07-09 23:27:00) [2]я так понимаю pd4sb[n] это TStringList, а TextListBox1.Items - TStrings. Разные типы!
Напиши :
pd4sb[n].AddStrings(TextListBox1.Items)
Nikolay (2002-07-09 23:03:00) [3]имхо проблема в TextListBox1.Items;