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

Простой вопрос   Найти похожие ветки 

 
федя   (2002-06-21 04:34) [0]

Как по-умному загнать содержимое столбца таблицы в ComboBox?
Может быть есть стандартная ф-ция вроде:

function TForm1.MakeStrings(ATable,AField:string):TStrings;
begin
result:=TStringList.Create;
with Table do
begin
TableName:=ATable;
Open;
while not Eof do begin
result.Add(FieldValues[AField]);
next
end;
Close
end
end;


 
fnatali ©   (2002-06-21 05:55) [1]

Может, тебе воспользоваться DBLookupComboBox?


 
tural   (2002-06-21 10:12) [2]

procedure TForm1.FormCreate(Sender: TObject);
begin
Table1.First;
ComboBox1.Items.Clear;
while not Table1.Eof do
begin
ComboBox1.Items.Add(Table1.FieldByName("subj_name").AsString);
Table1.Next;
end;
end;



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

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



Память: 0.45 MB
Время: 0.007 c
6-47625
Сергей Л.
2002-04-26 21:29
2002.07.15
Как проверить открыт ли порт на удаленном компютере


3-47063
Дмитрий Баранов
2002-06-20 17:39
2002.07.15
Добавление данных ( LoadFromFile )


1-47256
zzet
2002-06-24 20:55
2002.07.15
Вопрос по реестру


1-47585
Still Swamp
2002-06-28 13:30
2002.07.15
Перейти на элемент TTreeWiew


3-47100
shulc
2002-06-20 19:13
2002.07.15
Not enough storage is available to process this command




   Наверх