Autor Beitrag
SteheAufDerLeitung
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 104



BeitragVerfasst: Do 12.07.07 16:33 
Will zwei Strings vergleichen, der eine in ner ListView, der andere in nem ValueListEditor, Groß- und Kleinschreibung soll nicht beachtet werden.

Dazu will ich sie in zwei Strings schreiben:
ausblenden Delphi-Quelltext
1:
2:
str1 := high(ListView.Items[i].Caption);
str2 := high(ValueListEditor.items[i].Caption);


Diese möchte ich auf Gleichheit überprüfen. Dennoch sagt Delphi, dass high()nicht auf lange Strings anwendbar ist!? Die Captions sind doch aber vom Typ string!!!???

Beste Grüße

Sebastian
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 12.07.07 16:48 
Moin!

Kann sein, du verwechselst High()mit UpperCase()? :gruebel:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
SteheAufDerLeitung Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 104



BeitragVerfasst: Do 12.07.07 17:21 
thx! =)
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Do 12.07.07 18:05 
Wenn, dann nimm aber AnsiUpperCase, sonst kriegst du bei Umlauten Probleme.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.