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

Вниз

table1.Locate( Текст ,123,[])   Найти похожие ветки 

 
Samick ©   (2004-10-09 13:07) [0]

Я написал table1.Locate("Текст",123,[]);и Grid1 показывает только надпись 123 помогите пожалуста как сделать мне так чтобы при вводе  текста в Edit1, отображалась надпись в Grid


 
GanibalLector ©   (2004-10-09 14:24) [1]


procedure TForm1.Edit1KeyUp(Sender: TObject; var Key: Word;
 Shift: TShiftState);
begin
if query1.Active=true then
query1.locate("name",edit1.text,[lopartialkey]);
end;



Событие KeyUp


 
GanibalLector ©   (2004-10-09 14:35) [2]

Хотя,можно любые события использовать.Хоть тот-же Change


 
Deniz ©   (2004-10-09 14:36) [3]

Можно еще добавить

query1.locate("name",edit1.text,[loCaseInsensitive, loPartialKey]);


 
GanibalLector ©   (2004-10-09 14:39) [4]

loCaseInsensitive
Key fields and key values are matched without regard to case.

loPartialKey
Key values can include only part of the matching key field value; for example, "HAM" would match both "HAMM" and "HAMMER."



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

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

Наверх




Память: 0.47 MB
Время: 0.026 c
11-1082519213
azsd
2004-04-21 07:46
2004.11.07
KOLToolbar s tboflat handle the height to a fix value?


1-1098353405
digger
2004-10-21 14:10
2004.11.07
Описание объектной модели Object Pascal


1-1098700751
Strimer
2004-10-25 14:39
2004.11.07
Использование Project2 в Project1


6-1093615570
RoLeX2004
2004-08-27 18:06
2004.11.07
Ошибка при отправке e-mail!


1-1098292996
Dr. Genius
2004-10-20 21:23
2004.11.07
Шрифт MessageBox’ов и InputBox’ов