I'd like help on 2 linked problems: Firstly my App halts at "allMenus[i].OnClick:=Form1.MenuItem2Click;" with the error "Wrong Number of parameters specified."

Procedure MenuItem2Click is in Unit2 and is in the form "procedure TForm1.MenuItem2Click(Sender: TObject);" I understand, from Googling extensively, that this should work.
It should yes, but from what I can see you should use: allMenus[i].OnClick:[EMAIL PROTECTED] or add {$mode delphi} to the top of your unit. FPC has more strict syntax than delphi.

And secondly, how can I access the Command=new Name/Value pair once it does get to MenuItem2Click.....
Not shure what you want to say here. Can you be more specific?

Darius


I hope this is reasonably clear.

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

Reply via email to