Parameters in Delphi
Parameters Parameters are special kind of variables declared in a subroutine that are used to input some value into that subroutine. And the values that we pass in a function call is called as Arguments. in Delphi we can declare functions/procedures with parameters like following Example of a Function declaration function Add(Num1: integer; Num2: integer) : Integer; In above function declaration Num1, Num2 is called as Parameters. Using of function Add... var iResult: integer; ....... iResult := Add(10, 20); 10, 20 are called as Arguments that are passed in function call. We can pass a single or multiple Parameter list to a Delphi subroutine. In case of Parameter list we declare Parameters separated by " ; " and enclosed by parenthesis. Parameter names must be valid identifiers. The parameter list specifies the number, order, and type of parameters that must be passed to the routine when it is called. Within the procedure or func