Autor Beitrag
detke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

WIN XP
Delphi 5
BeitragVerfasst: Fr 19.05.06 13:42 
Hi,

wie kann ich einen Edit text auswerten ich meine:

Wenn in meine Edit1 z.b. 1 steht das dann im Labe1 'Jo, so is es halt.'

Gruss Detlef

Ps.: ich weiß das das eigentlich leicht ist.
starsurfer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 334

Win 95, Win 98, Win XP, Win Vista, Linux
D5 Enterprise ,D2005, D6 Personal, Visual C++ Express 2005, C++ Builder 6 E, Dev-C++
BeitragVerfasst: Fr 19.05.06 13:48 
ausblenden Delphi-Quelltext
1:
if edit1.text='1' then label1.caption:='Ja, so ist das halt';					


so

//EDIT: nix AUTSCH, hab mich halt vertipp..... :roll:

_________________
GEIZ IST GEIL! - Ihr Sozialamt


Zuletzt bearbeitet von starsurfer am Fr 19.05.06 13:52, insgesamt 1-mal bearbeitet
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 19.05.06 13:49 
user profile iconstarsurfer hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
if edit1.text:='1' then label1.caption:='Ja, so ist das halt';					


so

Autsch! Das := ist kein Vergleich, sondern eine Zuweisung!
ausblenden Delphi-Quelltext
1:
2:
  if Edit1.Text = '1' then // = nicht :=
    Label1.Caption := 'Ja, so ist das halt';
detke Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

WIN XP
Delphi 5
BeitragVerfasst: Fr 19.05.06 13:50 
Jo jetzt gehts
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 19.05.06 14:11 
user profile iconstarsurfer hat folgendes geschrieben:
//EDIT: nix AUTSCH, hab mich halt vertipp..... :roll:

So meinte ich das Autsch ja auch! Dass du das weisst ist mir klar. Die Erklärung war für detke bestimmt, den so ein (eigentlich kleiner) Fehler eventuell verwirren könnte...