Jan-05-2020, 02:18 PM
Thanks again for responding ichabod801. And thank you for doctoring my post. I've read the instructions in the link you sent me and I'll do it properly in the future.
Meanwhile, your recommendations fixed my code alright. Thank you very much! I'm getting exactly what I want now. The reason I was trying to use a global is that I need all 'prev_' values to persist through the processing of the next record in the row.
If I understand how to use the 'return' statement correctly as you've shown it, I don't need a global because the function values are returned to the calling statement after each iteration, thus accomplishing the same thing.
Is my understanding correct?
Meanwhile, your recommendations fixed my code alright. Thank you very much! I'm getting exactly what I want now. The reason I was trying to use a global is that I need all 'prev_' values to persist through the processing of the next record in the row.
If I understand how to use the 'return' statement correctly as you've shown it, I don't need a global because the function values are returned to the calling statement after each iteration, thus accomplishing the same thing.
Is my understanding correct?