Hello, for using TThread.CreateAnonymousThread thread
Is there any configuration required.
How can I improve the code ?
procedure TForm1.FormCreate(Sender: TObject);
begin
TThread.CreateAnonymousThread(
procedure
begin
// code
end
).Start;
end;
unit1.pas(325,3) Error: Illegal expression
unit1.pas(326,3) Error: Syntax error, ")" expected but "BEGIN" found