Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Базы";
Текущий архив: 2008.06.22;
Скачать: [xml.tar.bz2];

Вниз

как разделить 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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.47 MB
Время: 0.05 c
2-1211880109
Igor_34
2008-05-27 13:21
2008.06.22
Масштабирование формы - разрешение экрана


2-1211883511
dumka
2008-05-27 14:18
2008.06.22
Сумма прописью в отчете


1-1194937505
DancerMan
2007-11-13 10:05
2008.06.22
Обмен значениями элементов ListView


2-1211870709
Radgar
2008-05-27 10:45
2008.06.22
Мерцание при перемещении


15-1210347223
Olegz77
2008-05-09 19:33
2008.06.22
Borland продает CodeGear





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский