[Lazarus] Foreach?
Timothy Groves
the.tail.kinker at gmail.com
Sat Jun 8 09:56:49 CEST 2013
On 13-06-08 03:49 AM, Sven Barth wrote:
>
> c := 0;
> for i := 0 to frmMain.ControlCount - 1 do
> if (frmMain.Controls[i] is TButton) and (Pos('btnMacro',
> frmMain.Controls[i].Name) = 1) then begin
> frmMain.Controls[i].Caption := MacroList[c].Name;
> Inc(c);
> end;
I can see how this might work. Unfortunately, it does not, and attempts
to debug it crash the debugger...
More information about the Lazarus
mailing list