On Tue, 2006-05-23 at 19:31 -0600, John Meyer wrote:
> Rob wrote:
> > 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
> >
> 
> Okay, let me make this a little clearer.
> 
>  >>    if btnTestMeClick.tag=0 then
> 
> 
> This is the line that is causing the error.

  if/elseif block is parsed as one statement...

  The error you have in the code is within the 

  else/elseif block so the error line is given

  as starting at the first if.   I've had this

  happen to me before as well..   



> 
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to