[Lazarus] Is it possible to create a loop

Nikolay Nikolov nickysn at gmail.com
Mon Oct 4 18:18:33 CEST 2010


  On 10/03/2010 09:01 PM, Bizugo wrote:
>  Is possible to create a loop using a code like this one:
>
> for var J: integer = X to Y do {...}
No, but if you're using Lazarus and want to save typing, you can write:

for I := 1 to 10 do

and then press Ctrl+Shift+C and it will automatically add I: Integer to 
your local variable list, so you can write it just as fast, and most 
importantly, without the need to move the cursor back to the variable list.




More information about the Lazarus mailing list