Recent

Author Topic: uData.pas(246,22) Error: class identifier expected  (Read 267 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: 252
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 1.8.4 FPC 3.0.4 Linux Mint Mate 17.2 x86_64 GTK-2
Zeos 7.1.3 - Sqlite 3.8.2

Foro Lazarus en español http://forum.lazarus.freepascal.org/index.php/board,73.0.html