+ From: Bogdan M.Maryniuck + + Yes, it's work. Question is HOW. + For example: + + while…
Ok, Marc.
Here is detailed answer:
begin
readln(sometextfile,somestring);
listbox.items.add(somestring);
end;Here is all Ok -- I see my line there.
When I try to (just for fun):
begin
readln(sometextfile,somestring);
listbox.items.add(somestring);
readln(sometextfile,somestring);
listbox.items.add(somestring);
readln(sometextfile,somestring);
listbox.items.add(somestring);
readln(sometextfile,somestring);
listbox.items.add(somestring);
readln(sometextfile,somestring);
listbox.items.add(somestring);
end;All RIGHT. And all OK.
But:
while not eof(sometextfile) do
begin
readln(sometextfile,somestring);
listbox.items.add(somestring);
end;It's freezing a system. Do I need to add:
application.processmessages
into the LOOP? Or what?.. Please help.
