Count Property Example

The following program code displays the number of parameters in a TParams variable within the caption of a label when the user clicks the CountParameters button:

procedure TForm1.CountParametersClick(Sender: TObject);
begin
  Label1.Caption := 'There are ' + IntToStr(RPCBroker1.Param.Count) +
    ' parameters.';
end;