loop counter variable "reset" aka parts counter

Hi all, first I would like to apologize for not being able to post a code snippet as I currently do not have access to the Internet other than through my phone.

The issue I'm having is as follows:
"Int i=0" on initial program setup
"i++" at the end of void loop

This part works perfectly also have some extra stuff in there to print "i" to an lcd.

I'm using a do-while loop to read a counter reset button state, this part also works perfectly completing the loop functions when the button is pressed and only when the button is pressed.

That being said after reseting the counter the variable "i" doesn't reset back to zero.
I have tried re initializing the variable "int i = 0" in that section of the loop without success.

How do I "reset" i back to zero within a loop?

I have learned a great deal from this site and through searching have not been able to locate a solid answer on this specific question. I appreciate any replies to help resolve this snag in my program.

How do I "reset" i back to zero within a loop?

I must be missing something here:
i = 0;

That did it! I could have sworn I did that when i wss fooliing with it,but I guess my late night code writing in combination with lack of short term memory must have missed it.

I knew it was something stupid simple.

Thank you for fixing my last headache with this machine!

late night code . . . short term memory

Happens to most of us.