Главная страница
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.017 c
2-1212067160
TBase_Tree
2008-05-29 17:19
2008.06.22
SQL


2-1212044324
кот
2008-05-29 10:58
2008.06.22
Строковая переменная


2-1211854590
emytz
2008-05-27 06:16
2008.06.22
Установка приложения по команде.


2-1211998877
deled
2008-05-28 22:21
2008.06.22
узнать цвет пикселя в Image


3-1200478260
FBuilder
2008-01-16 13:11
2008.06.22
Как сделать мгновенно?