Where are the variables/ constants Num and MaxNumbers declared. For example, I can't see the purpose of
IF Num=Number Then A:=True;
since you declare Number = 0. If you're testing for 0 why not write
A := (Num = 0);
Maybe if you could restate the objective of the code, or provide pseudo...
Repeat
IF A=false Then Begin
Num := number;
Position := I;
end
Until A=true;
Your program is not locking up, it's in an endless loop as A is always false!
Pierre
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.