I assume you have an upper bound to x.Can't you just put on more than you need and then hide the ones youdon't need ".visible=FALSE" at form launch/activation?