Looping Problem

1. Member
Join Date
Dec 1969
Posts
85

## Looping Problem

2. Senior Member
Join Date
Dec 1969
Posts
16,931

## RE: Looping Problem

You have:<BR>DO WHILE excount &#060; 3 <BR><BR>Then the last line in that loop is:<BR>excount = 2 <BR><BR>So it will always be less than three, hence the infinite loop.<BR><BR>Craig.<BR>

3. Senior Member
Join Date
Dec 1969
Posts
1,015

## RE: Looping Problem

just a quick note but it seems to me this doesnt work:<BR><BR>DO WHILE excount &#060; 3<BR><BR>you see, as far as I could see excount is NEVER 3. so its ALLWAYS lower then 3. there&#039;s your infinite loop...<BR><BR>(maybe I didn&#039;t look 2 well, so I might be wrong)

4. Senior Member
Join Date
Dec 1969
Posts
1,015

## my point exactly

lol<BR><BR>great minds think alike<BR><BR>my words exactly (as a bit 2 late though)<BR>;-)

5. Member
Join Date
Dec 1969
Posts
85

## Bah

Thanks lads...sometimes you just get into the code soooo much that you can&#039;t see the obvious stuff...altered that loop at the top but forgot to change the bottom part....bah<BR><BR>Coffee break anyone..

6. Senior Member
Join Date
Dec 1969
Posts
1,015