array help

ah... this does work quite well... one question though... I'll need to reset "i" when I want to update the array yes?