Autor Beitrag
asbito
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Di 27.02.07 18:30 
Hi leute ich hab ein Char Zeichen und möchte das an einen string ransetzen aber ich bekomme immer inkompatiple Typen was tun.
marvin521993
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 172



BeitragVerfasst: Di 27.02.07 18:35 
am besten du zeigst ma was du programmieren willst und am besten einen quelltext

mfg

_________________
Marvin Tappert
Besiege einen Feind, und du erhälst 100 Neue!!!!Keine bösen Sprüche bin noch Anfänger
asbito Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Di 27.02.07 18:37 
Zeichen := Satz[i];
Str:= chr(Zeichen);
result := result+ Str;
Bääääär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Di 27.02.07 18:40 
sieht so aus, als übernimmst du einen string zeichen für zeichen mit einer schleife. warum nicht gleich

result:=statz;
marvin521993
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 172



BeitragVerfasst: Di 27.02.07 18:40 
falls result, zeichen, satz und i bei dir integer sind, probiers mal so:

ausblenden Delphi-Quelltext
1:
2:
3:
Zeichen := Satz[i]; 
Str:= chr(Zeichen); 
result := result+ StrToInt(Str);


mfg

_________________
Marvin Tappert
Besiege einen Feind, und du erhälst 100 Neue!!!!Keine bösen Sprüche bin noch Anfänger