Autor Beitrag
whitesnake
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40

Win XP Home
Delphi 7 Personal, HTML
BeitragVerfasst: Do 07.09.06 18:30 
hi,
wie kann ich es erreichen dass das passiert:

WENN edit1.text ODER edit2.text = '' DANN
blabla
ELSE
blabla

habs mit "OR" probiert, klappt aber nicht
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 07.09.06 18:43 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
if (edit1.text = 'DANN' or edit2.text='DANN'then
  BlaBla
else
  BlaBla;

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Do 07.09.06 18:46 
Leider fehlen da 2 weitere klammern in marco's beispiel:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
if (edit1.text = 'DANN') or (edit2.text='DANN'then
  BlaBla
else
  BlaBla;
[/quote]
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 07.09.06 18:50 
user profile iconMarc. hat folgendes geschrieben:
Leider fehlen da 2 weitere klammern in marco's beispiel:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
if (edit1.text = 'DANN') or (edit2.text='DANN'then
  BlaBla
else
  BlaBla;

Stimmt, ich habe lange nichts mehr in Delphi gemacht. :zwinker:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
whitesnake Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40

Win XP Home
Delphi 7 Personal, HTML
BeitragVerfasst: Do 07.09.06 18:51 
jo geht, danke...wusst nich dass man die klammern setzen muss :P