dimension this.aControls[this.controlcount] for each loControl in this.controls if loControl.TabIndex > alen(this.aControl, 1) dimension this.aControls[loControl.TabIndex] endif this.aControls[loControl.TabIndex] = loControl endforThen scan through that array,
for each loControl in this.aControls if vartype(loControl) = 'O' loControl.Valid() && Or whatever it is that you do endif endfor