Autor Beitrag
chukalv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44



BeitragVerfasst: Fr 24.03.06 11:43 
Don`t get it why it`s not working... Are there some string types not correctly?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure something;
var
i: integer;
row : string;
begin

for i := 1 to 10 do row := row + chr(random(25)+97);

ShowMessage(row); // gives allways empty out... Should give something like 'azhsnabapq'

end;
chaoslion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45


Delphi 2k6 Prof,C,C#,Delphi
BeitragVerfasst: Fr 24.03.06 11:49 
Ive tested your code and it works, so i dont get what your problem is..
eq row= "aavfgqhejk"
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Fr 24.03.06 11:51 
I can not see any bug in this code.
Try debugging and look if the variable row will change.
chukalv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44



BeitragVerfasst: Fr 24.03.06 12:01 
Don`t get it. Nothing changed, just restarted Delphi and everything goes...