TApxTerminalParser.ArgumentCount

TApxTerminalParser

property ArgumentCount : Integer

Returns the number of arguments for the current command.

When a terminal control sequence has been completely received, the ArgumentCount property will return the number of arguments or parameters the parser found in the sequence. You can use this value to know how many arguments you can read from the Argument array property.

If a sequence is still being built up, the ArgumentCount property will be zero. It will only have a non-zero value after the ProcessChar method returns pctComplete (and before ProcessChar is called again) and if the sequence had at least one argument.

In this ancestor class, the Argument property always returns zero.

See also: Argument, ProcessChar