Web Core Application and inline variables

Hi,

Why when I use inline variables in Web Core Application (Delphi 10.4) I get syntax error?

E.g.:

procedure TForm1.WebButton1Click(Sender: TObject);
begin
var i:Integer:=10;
end;

after compilation

The pas2js compiler that 'compiles' the Object Pascal code to JavaScript code has at this time no support for inline variables.

Ok I understand

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.