thisform.setenabled(.t.) thisform.setenabled(.f.) function Setenabled lparameter tlOnOff for each pgf in this.pageframe1.pages for each oCtrl in pgf.controls if pemstatus(oCtrl,'enabled',5) oCtrl.enabled = tlOnoff endif endfor endfor endfunc>I have a pageframe that contains about five pages. Each page has a number of textbox and other controlboxes. I there a way for my to cycle though all the control to enable/disable without writing individual enable/disable code for each control?