Thanx for the file. I think I wasn't clear enough in my original posting so sorry to have bothered you. The "X" I was referring to was really an x...as in any random value not a literal X. : )
The core logic works and is the brute-force method I was trying to avoid implementing. I also agree with one of the earlier responders...if they ever implement a real SetRepetition function then repeating fields would be great general purpose arrays.
For now I'll make a brute-force script that encodes the rep # and value in the parameter and dupe it as needed.
Thanx.
CharlieD