Dec
Previous
Top
Next
Prototype
Dec
(intNumber)
Description
It decreases the variable passed as parameter.
Parameters
IntNumber
: integer value to be decreased.
Returned value
None.
Example
// It initializes a variable
Counter:=10001;
// It starts a cycle
Repeat
begin
//It decreases the variable
Dec(Counter);
ApplicationLog(_CurrentAgent,IntToStr(Counter));
end;
//It checks if the cycle has been executed 10000 times and exit in
//affirmative case
Until (Counter<=1);