Ubound of a control

Hello,

I have a TextField Control set, MyTextField(), 8 textfields in the group

I use this, and it works…
Dim i as integer
For i = 0 to 7 …

But I prefer to use Unbound() instead of 7,
For i = 0 to Ubound
how do I code that?

Thanks.

Lennox

You can’t. Control sets are not arrays. You could delete control number 5, and 6 & 7 would still be valid.

Thanks Wayne,
Lennox

or just make the first one in a control set have an index of 100 :stuck_out_tongue:
then the first 0-99 are missing