Autor Beitrag
ak
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 240

Suse Windows 9 XP
D6 Professional
BeitragVerfasst: Mi 23.07.03 19:32 
Hallo Leute,

wie kann ich das z.B. dritte Zeichen eines Strings in einen Character umwandeln?

Gruß AK

_________________
Gruß AK
UC-Chewie
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 531

WinXP
D5 Ent
BeitragVerfasst: Mi 23.07.03 19:43 
Meinst du das:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var
  c: Char;
  s: String;
begin
  s := 'Hallo';
  c := s[3];  //='l'
end;

_________________
Egal wie dumm man selbst ist, es gibt immer andere, die noch dümmer sind
ak Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 240

Suse Windows 9 XP
D6 Professional
BeitragVerfasst: Do 24.07.03 20:17 
jupp, ich dachte das geht nur bei arrays, werde es morgen mal ausprobieren, danke dir

_________________
Gruß AK