Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2008.06.22;
Скачать: CL | DM;

Вниз

как разделить DBLookupcombobox на 2-е части?   Найти похожие ветки 

 
linox   (2008-01-14 13:00) [0]

Доброе время суток... есть такая проблемка....
Есть база данных, есть таблица,.... мне нужно в один DBLookupcombobox запихнуть 2-а поля с этой таблици.... подскажите пожалуйста как это сделать..


 
Правильный_Вася   (2008-01-14 13:10) [1]

в справке есть
поля через точку с запятой


 
linox   (2008-01-14 13:28) [2]

"поля через точку с запятой"
listfield - id;nu - не канает


 
Правильный_Вася   (2008-01-14 13:44) [3]

The lookup control represents a field in one table by displaying the value of one or more corresponding fields in another table. ListField is the name of the field or fields in the lookup table that are actually displayed, as opposed to the DataField, which is the field in the DataSource that the lookup control actually represents, or the KeyField, which is the field in the lookup table with the same value as the DataField.

To fully specify the list fields, both a dataset for the lookup table and the fields within that dataset must be defined. The ListSource property of the lookup control specifies the dataset for the lookup table.

ListField can represent more than one field. Separate multiple field names with semicolons.

Before specifying ListField, specify the link between the two datasets using the KeyField property. If ListField is not set, lookup controls display KeyField field values by default. If the DataField field is a lookup field, don"t specify anything for ListField; the data controls automatically use the lookup field"s
LookupResultField property as ListField.


 
linox   (2008-01-14 14:09) [4]

)) я плохо знаю англ.


 
dumka   (2008-01-14 14:41) [5]

DBLookupcombobox1.ListField:="поле1;поле2";


 
linox   (2008-01-14 15:21) [6]

procedure TForm1.FormCreate(Sender: TObject);
begin
DBLookupcombobox1.ListField:="id;nu";
end;

end.
неканает


 
Правильный_Вася   (2008-01-14 15:38) [7]


> Before specifying ListField, specify the link between the
> two datasets using the KeyField property

сначала двойной Key, потом двойной List


 
Lexer ©   (2008-01-14 17:08) [8]

Правильный_Вася   (14.01.08 15:38) [7]
>сначала двойной Key, потом двойной List


это такая шутка?


 
linox   (2008-01-16 11:16) [9]

гуру... где вы?


 
Lexer ©   (2008-01-16 12:19) [10]

тебе сказали уже, запиши имена выводимых полей в listfield через точку с запятой


 
linox   (2008-01-16 13:19) [11]

2 lexer^
см. "linox   (14.01.08 13:28) [2]
"поля через точку с запятой"
listfield - id;nu - не канает"


 
Правильный_Вася   (2008-01-16 15:32) [12]

порядок заполнения свойств соблюдать надо


 
linox   (2008-01-16 16:41) [13]

"порядок заполнения свойств " - сдесь поподробней можна?


 
ПВ   (2008-01-16 17:08) [14]

[7]


 
linox   (2008-01-16 17:52) [15]

Error:
DBLookupCombobox1: Field "id;nu" not found


 
linox   (2008-01-17 13:30) [16]

ну и?



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

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

Наверх




Память: 0.49 MB
Время: 0.02 c
15-1210173184
koha
2008-05-07 19:13
2008.06.22
Как поднять игровой автомат на Linux


15-1210753383
Vlad Oshin
2008-05-14 12:23
2008.06.22
настроить редактор для заготовок кода


2-1211805768
opoloXAI
2008-05-26 16:42
2008.06.22
CF_Text и CF_Bitmap вместе


2-1211875062
AlekseyB
2008-05-27 11:57
2008.06.22
Как программно сделать даблклик на DBGrid


15-1209656258
NaRuTo
2008-05-01 19:37
2008.06.22
Написание OS на Delphi