On Fri, Aug 24, 2012 at 10:22 PM, brian <[email protected]> wrote:

> Type
>  TBtnPtr = ^TButton;
>  TBtnArray = Array [1..36] of TBtnPtr;
>

TButton is a reference type. Reference is basically a pointer which does
not require the pointer syntax.
You are really defining a pointer to pointer, a useless indirection there.
It makes things more difficult and you make errors more easily and may even
get a SIGSEGV :)

Do this instead:

type
TBtnArray = Array [1..36] of TButton;


Juha
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to