Вниз
Скачать: CL | DM;

Объясните мне пожалуйста,   Найти похожие ветки 

← →
anod ©   (2002-07-09 22:28) [0]

почему такой код работает:
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;


← →
Nikolay ©   (2002-07-09 23:03) [1]

имхо проблема в TextListBox1.Items;


← →
Gonza ©   (2002-07-09 23:27) [2]

я так понимаю pd4sb[n] это TStringList, а TextListBox1.Items - TStrings. Разные типы!

Напиши :

pd4sb[n].AddStrings(TextListBox1.Items)


← →
anod ©   (2002-07-10 00:14) [3]

Спасибо.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.007 c
1-70792
ize
2002-07-10 11:08
2002.07.22
Выравнивание текста в ячейках StringGrid


14-70877
Vitalyfr
2002-06-24 16:57
2002.07.22
Извените что опять не в тему


14-70878
Val
2002-06-21 11:26
2002.07.22
Краткий курс английского для инженеров


3-70612
dimanew
2002-06-28 09:12
2002.07.22
Datapump переводил из Парадокса в IB все таблицы нормально


14-70872
_landy
2002-06-24 07:09
2002.07.22
генератор html-отчетов




   Наверх