Autor Beitrag
nevz1234
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Di 27.08.02 15:29 
Wie sieht unter Delphi eine EInseitige If Avfrage aus????? Kenn nur If Abfragen und C++ Builder und VB
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Di 27.08.02 15:37 
hier hast du ein kleines Beispiel für eine If-Abfrage:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
if passwort = 'Hallo' then
begin //wenn das passwort hallo ist, dann mache folgendes
  ...
end
else  //wenn es nicht hallo ist, dann mache was anderes
begin
  ...
end;


wobei, man die else-verzweigung nicht machen muss. Is ja klar, oder? :wink:

_________________
Viele Grüße
Jakob
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Di 27.08.02 15:51 
Hallo,

gebe mal im DELPHI Editor das wörtchen IF ein und drücke dann F1.
Desweiteren solltest du dir mal ein paar einsteigerkuste angucken (1, 2, 3).

Gruß
Klabautermann