>In the past I have always used the form builder wizard and the button set that it includes. Io now need to have more control over some forms and am making my first attempt to do so. What I need to do is dissable all of the textboxes and editboxes on a form until an edit button is pressed. I then need to enable all of the boxes so that the user can enter data.
>
>The question is how to do so in the easiest manner possible? It seems that using a for...each would be the best way. What is the syntax that will do this for edit and text boxes?
>
>Also, is this the right approach or is there a better one?
>
>Thanks
>
>Dennis
At design time you can select all the textboxes and set the eneabled property in the properties window.
At Runtime you can simply use
Thisform.SetAll('Enabled',.T.,'textbox')
HTH,