Determine when pointer has reached end of array?
Posted: Sun Nov 13, 2005 4:36 pm
Hello,
I am using foreach to move through an array. I want to treat the last item differently than all the preceding ones. How do I determine when I've reached the the last spot?
Thanks!
I am using foreach to move through an array. I want to treat the last item differently than all the preceding ones. How do I determine when I've reached the the last spot?
Thanks!