Rally
2012-01-21 04:01:11
Hello, im trying to make a failsafe timer for checking if inventory count has changed.
Thought of someting like this:
How should i write the until statement?
Thought of someting like this:
procedure Test;
var
Count, Timer: Integer;
begin
MarkTime(Timer);
repeat
Count:= InvCount;
until (TimeFromMark(Timer) >= 10000)); // here i need the loop to break if Count is still the same after 10 seconds.
end;How should i write the until statement?