[lazarus] Why won't modal result work for me?

Tony Maro tonym at nlisc.com
Mon Sep 30 17:31:25 EDT 2002


I have a form with a button that has this:

procedure TFrmNewSchedDep.BtnOkCLICK(Sender: TObject);
begin

     ModalResult := mrOk;
     self.close;

end;


When clicked the form closes, but the result is always mrCancel.

Thanks,
Tony






More information about the Lazarus mailing list