Recent

Author Topic: uData.pas(246,22) Error: class identifier expected  (Read 1017 times)

davesimplewear

  • Sr. Member
  • ****
  • Posts: 319
    • Davids Freeware
uData.pas(246,22) Error: class identifier expected
« 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
All things considered insanity seems the best option

GAN

  • Sr. Member
  • ****
  • Posts: 370
Re: uData.pas(246,22) Error: class identifier expected
« Reply #1 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;
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

 

TinyPortal © 2005-2018