Autor Beitrag
th3Thr1ll3r
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 31

Win XP Prof
Delphi 6 Pers.
BeitragVerfasst: Sa 20.01.07 23:49 
Hallo...
ich habe eine Frage.

Wie kann ich den folgenden Buchstaben eines Buchstaben ermitteln?
d.h. wenn ich den Buchstaben A habe soll mit danach der Buchstabe B ausgegeben werden.

MfG

das thriller
Jetstream
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 222



BeitragVerfasst: So 21.01.07 00:08 
ausblenden Delphi-Quelltext
1:
2:
3:
var Buchstabe,Folgebuchstabe:char;

Folgebuchstabe := chr(ord(Buchstabe) + 1);

_________________
Die folgenden Klangbeispiele sind Ergänzungen zum methodischen Aufbau der Textbeilage und dürfen nicht losgelöst von dieser behandelt werden.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 21.01.07 00:50 
Moin!

Alternative: ;)
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
var
  Buchstabe, Folgebuchstabe: Char;  

begin
  Folgebuchstabe := Succ(Buchstabe);

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
th3Thr1ll3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 31

Win XP Prof
Delphi 6 Pers.
BeitragVerfasst: So 21.01.07 00:56 
dankeschön