[Lazarus] Lazarus and Application.ProcessMessages

waldo kitty wkitty42 at windstream.net
Thu Dec 4 21:34:38 CET 2014


On 12/4/2014 10:24 AM, Lukasz Sokol wrote:
> (OnTimer execution has the same problem : inevitably splits the procedure into
> more procedures, that can no longer use same local variables and stuff)

you can't make them subroutines of the subroutine?

eg:

program foobie;

procedure dofoobie;

var
   thisfoo : integer = 0;
   thatfoo : integer = 0;

   procedure littlefoobie;
   begin
     inc(thisfoo,thatfoo);
     inc(thatfoo);
   end;

begin
   repeat
     begin
       littlefoobie;
       writeln(thisfoo,'    ',thatfoo);
     end;
   until thisfoo >= 25;
end;

begin
   dofoobie;
end.


-- 
  NOTE: No off-list assistance is given without prior approval.
        Please *keep mailing list traffic on the list* unless
        private contact is specifically requested and granted.




More information about the Lazarus mailing list