Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.07.22;
Скачать: 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 вся ветка

Текущий архив: 2002.07.22;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.008 c
1-70798
HEXBAT
2002-07-10 10:55
2002.07.22
АЙ НИД ХЕЛП !!!


1-70737
tovSuhov
2002-07-11 17:25
2002.07.22
Переназначение дескрипторов ввода-вывода...


3-70665
_dron_
2002-07-02 13:01
2002.07.22
Создать запрос к 2-м базам Interbase и dbase. Они имеют общие пол


14-70883
Bishop
2002-06-25 05:58
2002.07.22
Где можно скачать Delphi Builder?


3-70647
AlexA
2002-06-27 16:48
2002.07.22
IBDataSet.Lookup