Shell.CmdParamCount

Top  Previous  Next

Returns the number of parameters passed on the command line.

 

Syntax

function Shell.CmdParamCount(): integer

 

Description

Returns the number of parameters passed on on the command line to the program. Separate parameters with spaces or tabs, use double quotation marks to wrap multiple words as one parameter (such as long file names containing spaces).

 

The Return Value is the number of parameters.

 

See Also

Shell.CmdParamStr

 

Example

execute UDSBlock returns (paramcnt integer, paramvalue varchar(1024))

as

begin
  paramcnt = Shell.CmdParamCount();

  paramvalue = Shell.CmdParamStr(1);

 

  /* returns the number of parameters and the first parameter */

end