Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Problem sa filtriranjem

[es] :: Pascal / Delphi / Kylix :: Problem sa filtriranjem

[ Pregleda: 2842 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

epehlic
Edin Pehlić
USK-a

Član broj: 4229
Poruke: 26
*.as54.bi.bih.net.ba.



Profil

icon Problem sa filtriranjem15.03.2005. u 20:23 - pre 232 meseci
U cemu je problem u sljedecem codu?
Kad u comboxu izaberem filtriranje po svim poljima (ItemIndex =0) i nakon unosa u edit1 5 znakova
(npr. pet prvi slova prezimena ili pet prvi brojeva JMBG) izbaci mi grešku:

"Project Name.exe raised exception class EDBengineError with message 'Operation not applicable.'.
Process stopped. Use Step or Run to continue.

A kad izaberem odredjeno polje u comboboxu pojedinacno (ItemIndex = 1ili 2 itd.) radi bez problema

A kod je:

procedure TClanoviF.Edit1Change(Sender: TObject);
begin
if combobox1.ItemIndex = 0 then
Table1.Filter:='Ime='''+Edit1.text+'*''' +'OR Rb='''+Edit1.text+'*'''
+'OR Prezime='''+Edit1.text+'*''' + 'OR JMBG='''+Edit1.text+'*'''
+'OR Broj_LK='''+Edit1.text+'*''';
if combobox1.ItemIndex = 1 then
Table1.Filter:='Rb='''+Edit1.text+'*''';
if combobox1.ItemIndex = 2 then
Table1.Filter:='Ime='''+Edit1.text+'*''';
if combobox1.ItemIndex = 3 then
Table1.Filter:='Prezime='''+Edit1.text+'*''';
if combobox1.ItemIndex = 4 then
Table1.Filter:='JMBG='''+Edit1.text+'*''';
if combobox1.ItemIndex = 5 then
Table1.Filter:='Broj_LK='''+Edit1.text+'*''';
end;

Hvala.
 
Odgovor na temu

_v!rus_
BGD

Član broj: 40451
Poruke: 313
*.vdial.verat.net.



+1 Profil

icon Re: Problem sa filtriranjem16.03.2005. u 05:35 - pre 232 meseci
Postavi zagrade
...
(Ime = 'abc') OR (BrojLK='123') OR ()...
 
Odgovor na temu

[es] :: Pascal / Delphi / Kylix :: Problem sa filtriranjem

[ Pregleda: 2842 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.