Autor Beitrag
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Di 15.03.05 00:54 
ich habe ne edit auf meiner form und da steht ein 'A' drinne aber ich bekomme nicht die meldung das es im array ist. weiß jemand warum....

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Button2Click(Sender: TObject);
var
  ZEICHEN : array[#65..#90] of char;
begin
  if Edit1.Text = ZEICHEN then showmessage('ist imm array') else showmessage('das haut so nicht hin');
end;


Moderiert von user profile iconUGrohne: Code- durch Delphi-Tags ersetzt.
Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am Di 15.03.2005 um 09:07
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 15.03.05 01:04 
Was Du meinst, sind Sets:

ausblenden Delphi-Quelltext
1:
If Edit1.Text[1] in [#65..#90] Then ...					

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Harry M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Di 15.03.05 01:08 
nun gehts thx. habe mich schon gewundert warum der debugger manchmal was von sets erzählte...