Thanks! That makes sense. Like the person in the StackOverflow article, I couldn't use those methods in my actual program, but the "green checkmark" solution's trick of setting up a trap at the top level and invoking the trap from within the function worked for what I needed to do. Thank you so much!
_________________________
Tony Fabris