for...do with big numbers

Hi!
Look here:

for count:=0 to 50000 do begin
label1.caption:=inttostr(count);
{...}
end;
end;

Can somebody tell me how label1 can get updated, because
form1 just gets white....and you can't see anything. I tried already to call another form, but that form hangs to...
Thx
:=dluedi
LVL 1
dluediAsked:
Who is Participating?
 
ITugayConnect With a Mentor Commented:
Hi dluedi,
just add
  Application.ProcessMessages;
after caption was assigned.

-----
Igor.
0
 
dluediAuthor Commented:
That is what I was looking for...
THX
:)dluedi
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.