Op dinsdag 23 mei 2006 20:23, schreef John Meyer:
> begin
> if btnTestMeClick.tag=0 then
> begin
> btnTestMeClick.Caption:='Click me Again';
> btnTestMeClick.tag:=1;
> end else
> begin
> btnTestMeClick.Caption;='Click';
> btnTestMeClick.tag:=0;
> end
>
> end;
>
>
> On the if line, I'm getting this error:
>
> unit1.pas(32,6) Error: Wrong number of parameters specified
>
>
> This is copied almost word for word from the wiki tutorial.
>
> _________________________________________________________________
> To unsubscribe: mail [EMAIL PROTECTED] with
> "unsubscribe" as the Subject
> archives at http://www.lazarus.freepascal.org/mailarchives
I am very new to Lazarus and not a Pascal programmer. I am not sure if it is
a bug or not but using a name like "btnTestMe" for your buttun runs fine.
Maybe a name ending on "Click" might confuse Lazarus maybe it expects an
OnClick procedure for the control "btnTestMe" when using the name
"btnTestMeClick".
Using "Click" at the end of a control's name might be confusing for your self
as well.
Rob.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives