Hi guys,
I have declared variable in lazarus project file, like this
var
ThreadStops: boolean;
ThreadsRunning: integer;
On my Mainform, I have a procedure button click
procedure TForm1.btnStartClick(Sender: TObject);
var
ThreadStops : boolean; cvar;external;
begin
end;
But it gave an errors :
Compile Project, Target: multithreadingexample1: Exit code 1, Errors: 2
mainunit.pas(85,26) Error: Cannot declare local variable as EXTERNAL
mainunit.pas(85,30) Fatal: Syntax error, ":" expected but ";" found
How to fix this?
Thanks in advance.