Your second piece of code work well. Thanks, because I like to use ranges in this particular case.
In reply to Re^2: Matching ranges by ldbpm in thread Matching ranges by ldbpm