Autor Beitrag
xel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mo 15.07.02 11:55 
ich will mein text so filtern das ich nur ein Bruchteil des Suchenden Textes eingebe!

Also ich kenn dat:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
Var Optionen: TLocateOptions;//für die Datenabank suche!

    with Form1.Table1 do
    begin
      optionen:=[loPartialKey,loCaseInsensitive];
      Form1.Table1.Locate(suchen,Edit1.text,Optionen);
    end;

und dat:
ausblenden Quelltext
1:
2:
    Form1.Table1.Filtered:= True;
    Form1.Table1.Filter:='('+Hauptfilter+'='''+Form1.Edit1.Text+''')';


aber hier kann ich nur Filtern wenn ich mein Text so eingebe -> MyText*

aber wenn ich so eingebe klappt es net -> *MyText*
und ich wollte auch so eingeben -> @*mytext* (@= Gross klein schreibung nicht beachten)


Vielen, vielen dank für eure Hilfe in voraus!!!!
Xel
wwerner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 185



BeitragVerfasst: Mo 15.07.02 12:53 
Benutz eine Query

select * from DeinerTabelle where DeinSuchFeld like "%DeinSuchText%"
xel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mo 15.07.02 14:14 
Titel: Query!?
Query... hmm mit Query habe ich noch nicht viel gearbeitet.. kannst mit ein genaueres Quellcode/Beispielcode zeigen?

thx
xel
wwerner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 185



BeitragVerfasst: Mo 15.07.02 14:45 
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Mo 15.07.02 14:53 
und noch eine kurze erläuterung zu deinem Speziellen Query ;).

Gruß
Klabautermann
xel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Di 23.07.02 01:06 
Titel: Was für eine SQL anweisung soll ich den nehmen?
Also mit SQL habe ich nicht viel gemacht und deshalb weis ich nicht was ich da reinschreiben soll!?
xel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Di 23.07.02 01:17 
Titel: OK, habs hinbekommen.. musste allerding SQL lernen ... Danke
OK, habs hinbekommen.. musste allerding SQL lernen ... Danke
:D