I have some menu items where the action is this:
procedure TMISMainFrm.ActiSalesInvoiceExecute(Sender: TObject);
begin
if CheckMdiList('Sales Invoice') then
BEGIN
SalesInvFrm := tSalesInvFrm.Create(Self,0,UserIdNo,1,1);
SalesInvFrm.Show;
END;
end;
The above action can be called from several locations, but the 2nd parameter (the 0), may change. How do I pass the required parameter such that I do not have to recode the routine?