Add tags

Add tags to the following comment
ParamCount関数でパラメータの個数を得られます。
ParamStr関数でパラメータ文字列を取得できます。
ParamStr(0)には起動したプログラムのパスが入ります。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
program arguments;

{$APPTYPE CONSOLE}

var
  i: Integer;
begin
  for i := 1 to ParamCount do
  begin
    Write(ParamStr(i) + ' ');
  end;
  // => a b c d
end.

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...