SRL Archive - Help and Support

Accessing InvCount Variable? Again?


The Prince of Randomness?

2006-03-20 23:36:17

Ok say i want to Count the inventory and then store the variable as a previous
Count, then access the Previous account and compare the old itemcount and
the new item count. Sorry for not being able to word it properly so here:



Procedure Example;
Begin
InvCount
Repeat
Wait(5000);
Until(InvCount < PreviousInvCount);
End;
Do you get it?

XxKanexX

2006-03-20 23:42:42


var
prev: integer;
begin
prev:= invcount;
repeat
wait(5000);
until(invcount < prev);
end.

The Prince of Randomness?

2006-03-21 03:28:40

Why Thanks.