Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: SV: RE: Problems increasing number...


Message #1 by "SD-Studios" <info@s...> on Wed, 17 Oct 2001 20:35:04 +0200
Thanks...thats an idea..i will try that..! =)

--

Martin Johansson





Message #2 by "SD-Studios" <info@s...> on Wed, 17 Oct 2001 20:53:43 +0200
Okay...but now i get 1,3,5,7,9,11 and so on...=) I wanted 1,2,3,4,5,6 and so

on =)

--

Martin Johansson



Message #3 by "Peter Foti (PeterF)" <PeterF@S...> on Wed, 17 Oct 2001 15:22:14 -0400
You must be incrementing your num2 variable in 2 places.  Make sure you

only have this:



num2 =3D num2 + 1



in one place inside the loop.  In the example I used, the increment

needs to be at the top of the loop.  You probably have one down near 

the

bottom of the loop as well.  Remove that one.



-Pete




  Return to Index