Inc
Previous  Top  Next

Prototype

Inc(intNumber)

Description

It increases a variable passed as parameter

Parameters

IntNumber
: integer value to increase.

Returned value

None.

Notes

None.

Example


// It initializes a variable
Counter:=0;

// It starts a cycle
Repeat
begin
// It increases the variable  
Inc(Counter);  
ApplicationLog(_CurrentAgent,IntToStr(Counter));  
end;

// It checks if the cycle has been executed for 10000 times and if //affirmative, it exit 
Until (Counter<10000);