Вниз
Скачать: 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 вся ветка

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



Память: 0.45 MB
Время: 0.023 c
4-1096526534
Muhsin
2004-09-30 10:42
2004.11.07
Запуск других приложений


1-1098580172
rerty
2004-10-24 05:09
2004.11.07
Win 98 -> XP, 2000(2003)


4-1096553699
united
2004-09-30 18:14
2004.11.07
Написать принтер


3-1097356478
GanibalLector
2004-10-10 01:14
2004.11.07
DBGridEh & Footer


8-1091708249
Dima_Delphi
2004-08-05 16:17
2004.11.07
Как изменять масштаб текста???




   Наверх