Autor Beitrag
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Di 15.11.05 11:14 
Hi, ich benutze die ZQuery von Zeos
ich kann Filter verwenden aber wenn ich will dass er TeilString Prüffung macht funzt es nicht!

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
with zqProjekte do
begin
  Filtered := (Trim(edFilterProjekt.Text) <> '');           // Wenn FilterText enthaten
  if(Filtered)then
  Filter := 'PROJEKTNAME = '+QuotedStr(edFilterProjekt.Text+'*'); // Wenn ich hier * verwende sollte er mir bei N z.B. Notstrom anzeigen
  else
  Filter := '';
end;


Wieso funzt die Teilprüffung denn nicht mit einem * Zeichen?
Robert.Wachtel
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 895
Erhaltene Danke: 7

Windows 7 Ultimate x64
D5 Ent, D7 Arch, RAD Studio 2010 Pro, VS 2008
BeitragVerfasst: Di 15.11.05 11:17 
Filterausdrücke unterstützen keine Wildcards. Siehe auch OH -> TDataSet.Filter
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Di 15.11.05 11:36 
user profile iconRobert.Wachtel hat folgendes geschrieben:
Filterausdrücke unterstützen keine Wildcards. Siehe auch OH -> TDataSet.Filter


Wie realisiere ich da dann? mit >= ?
Robert.Wachtel
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 895
Erhaltene Danke: 7

Windows 7 Ultimate x64
D5 Ent, D7 Arch, RAD Studio 2010 Pro, VS 2008
BeitragVerfasst: Di 15.11.05 11:53 
Sorry, ist heute nicht mein Tag. TDataSet.Filter müsste eigentlich doch Wildcards unterstützen. Was nicht geht, sind Konstrukte à la UPPER(Feld) = 'AB*', und das kann zu einem Problem werden, da Stringvergleiche case-sensitiv sind. Ich kann aber nicht sagen, ob bei Zeos eine abweichende Filterbehandlung vorhanden ist.
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Di 15.11.05 12:04 
Versuch mal das * durch ein % zu ersetzen.

_________________
Bravery calls my name in the sound of the wind in the night...