Lazarus

Using the Lazarus IDE => General => Topic started by: davesimplewear on December 08, 2019, 01:56:04 am

Title: uData.pas(246,22) Error: class identifier expected
Post by: davesimplewear on December 08, 2019, 01:56:04 am
function Warn1(aMsg: string): boolean;   

function dmCash.Warn1(aMsg: string): boolean;
begin
     Result:=MessageDlg(aMsg,mtWarning,[mbOk],0)=mrOK;
end;
This Results in the following error,vert frustrating ass the previous functions all compile ok
Title: Re: uData.pas(246,22) Error: class identifier expected
Post by: GAN on December 08, 2019, 02:58:13 am
May be that you need 2 or more options, because it's a dialog.

Code: Pascal  [Select][+][-]
  1.      Result:=MessageDlg(aMsg,mtWarning,[mbOk, mbCancel],0)=mrOK;
TinyPortal © 2005-2018