* I would add checking here to make sure thisForm.firstFocus property exists * this is just a working example if this.tabindex = 1 thisForm.firstFocus = this endifAdd a custom method to your form class, called setFirstFocus(). Put this code in it:
* you may want to put additional checking to makesure setfocus method exists if vartype(this.firstFocus) = "O" this.firstFocus.setfocus() endifThen, whenever you want to set focus to the first textBox (from within a form), simply call thisform.setfirstFocus().