Autor Beitrag
Pdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 142

Win XP
Delphi 7
BeitragVerfasst: So 08.01.06 12:19 
Hallo!
ich habe mal eine Frage: und zwar habe ich mich entschhieden, mich mal mt Consolenanwendungen zu beschäftigen!
Allerdings verstehe ich nicht, w ie man den befehl readln einsetzen kann!° Ich hab schon in der Hilfe nachgeschaut aber da steht nichts waws mir weiterhelfen würde! Was ich brauchen würde wäre:
"Wollen sie das wirklich tun? (J/N):"
Und wenn man dann Y oder N eingibt, dass dann per writeln was geschrieben wird! wie kann man das realisieren: oder noch besser: kennt jemand ein Tutorial für Konsolenanwendungen?!
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: So 08.01.06 12:32 
www.fh-jena.de/contr...urs_halle/index.html

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
 UserInput:string;
begin
  Writeln ('Wollen sie das wirklich tun?');
  Writeln ('Dann Drueck Y und Enter');
  Readln(UserInput);
   If (UserInput ='Y')or (UserInput ='y')then Writeln('Du hast dich fuer Ja entschieden ! ');
  sleep(5000);
end.
Pdd Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 142

Win XP
Delphi 7
BeitragVerfasst: So 08.01.06 14:18 
danke! hat funktioniert!