Autor Beitrag
Sledge_Hammer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win 98 SE, Win XP
D7 Prof
BeitragVerfasst: Do 12.06.03 20:56 
Steht schon im Titel, sowas wie StrToInt, nur eben Char in Integer. Gibt's sowas überhaupt?
THX Benni
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Do 12.06.03 21:08 
Hi,

geht auch mit StrToInt:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.Button1Click(Sender: TObject);
var
  c: char;
  i: Integer;
begin
  c := '9';
  i := StrToInt(c);
  caption := IntToStr(i);
end;


MFG

- Ernesto -
Sledge_Hammer Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win 98 SE, Win XP
D7 Prof
BeitragVerfasst: Do 12.06.03 21:21 
Danke. Vielleicht hab ich in der Eile IntToStr geschrieben und er hat deswegen gemeckert.
THX