Recent

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

davesimplewear

  • Sr. Member
  • ****
  • Posts: 307
    • 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: 297
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 - Sqlite 3.32.3

https://gitlab.com/users/GAN__/projects

 

TinyPortal © 2005-2018