Board index » off-topic » repeat loop

repeat loop


2004-04-22 04:52:23 AM
off-topic13
why doesn't the following repeat loop terminate?
tbNetTest.FindFirst;
repeat
tbNetTest.Edit;
tbNetTestSuccess.AsInteger := 0;
tbNetTest.Post;
tbNetTest.FindNext;
until tbNetTest.EOF;
thanks in advance
 
 

Re:repeat loop

Kendra wrote:
Quote
why doesn't the following repeat loop terminate?

tbNetTest.FindNext;
until tbNetTest.EOF;
if the last "find" isn't the last record, you'll never get to the last
record.. you're doing a "repeat" process here..
you're not doing a "scan", which *will* keep going until it gets to the
end..
Diamond Software Group
www.diamondsg.com/main.htm
Paradox Support & Sales - Corel CTech Paradox
---------------------------------------------------
Diamond Sports Gems
www.diamondsg.com/gemsmain.htm
Trading Cards and other Sports Memorabilia
---------------------------------------------------