Yeah, the above code you posted is not an infinite loop. You are doing something else wrong. I bet you are calling the function from some infinite loop that you are now going to look at and go... uhh ohh. I bet we will never see you post a reply to this too. Don't feel bad, I have done it too