Looping until within a undefined number of records
Hey, does anyone know how to loop thru (X)number of records when you don't know how many records are there. For example I want to meet a condition in a field and when I met that condition I stop the loop. Thanks in Advance!!!!
Re: Looping until within a undefined number of records
If your records are in a list it is very easy to do:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">[ ] int listcounter
[-] for listcounter = 1 to ListCount(mylistofrecords)
[-] if mylistofrecords[listcounter].shouldistopnow
[ ] break</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">