Autor Beitrag
Unzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 57



BeitragVerfasst: Mi 25.06.03 21:15 
Hallo,

weiß jemand, wie man mit Delphi Text in Dateien suchen kann?

Danke im voraus!

Unzi
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Mi 25.06.03 21:18 
Kannst du bitte deine Frage ein wenig spezieller stellen???

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 26.06.03 10:46 
Du lädst die Datei zum Beispiel in eine tStringList und suchst dann mit der Funktion Pos nach dem String.

Gruß
Tino
Unzi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 57



BeitragVerfasst: Do 26.06.03 20:15 
Der Vorschlag war schon gut. Danke, Tino. Aber noch besser wäre es, wenn ich es wahlweise case-sensitive oder nicht haben könnte, ohne gleich die ganze Datei und den Suchstring zu Uppercase/Lowercase konvertieren zu müssen.

Danke im voraus!
Unzi
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 26.06.03 20:23 
Mit GroßKleinschreibung gibts noch die Funktion AnsiMatchStr.

Damit haste ja dann 2 Funktionen und brauchst nichts konvertieren.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Fr 27.06.03 09:06 
UGrohne hat folgendes geschrieben:
Mit GroßKleinschreibung gibts noch die Funktion AnsiMatchStr.

Ab welcher Delphi Version ist diese Funktion vorhanden?

Gruß
Tino
MAlsleben
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 303

W2k,WinXP
D3 - DXE3 Enterprise
BeitragVerfasst: Fr 27.06.03 10:27 
Hi,

wie ist das mit der FindDialog Komponete aus dem Register Dialoge?
Kannst Du damit Dein Problem nicht lösen?

Gruß Micha.

_________________
Viele Wege führen nach Rom.
Unzi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 57



BeitragVerfasst: Fr 27.06.03 15:16 
Ich zitiere die Delphi-Hilfe:
Zitat:

Comparisons are case-sensitive.

d.h.: Ich habe dasselbe Ergebnis wie mit pos. Ich möchte aber, das der Vergleich NICHT case-sensitive abläuft.

Gruß!
Unzi