No access to command line parameters in Miletus/Electron app?

Hello!

I need to create a small utility whichs accesses a MySql database and sets some values, according to some strings which are given as command line parameters when called from the windows command line.

But as far as I can see, there is no possibility to access the command line parameters (like paramcount and paramstr() in delphi), or am I overlooking something?

Kind regards,
Meik Stoll

Hi,

For Electron we did not expose this yet.

For Miletus you can do:

procedure TForm1.WebButton1Click(Sender: TObject);
var
  I: Integer;
begin
  await(Boolean, TTMSParams.Execute);
  for I := 1 to ParamCount do
    console.log(ParamStr(I));
end;

Hi Tünde,
thank you very much for the quick reply!
Tested - it works. Great.
(I tried to use the TTMSParams class, but didn't realize that I had to call Execute at first.)
Kind regards,
Meik

1 Like