>Are all the texboxes based on the same class? If so you should look at SetALL
>
>
>ThisForm.SetAll('Enabled', .F., 'TextBox')
>
>
>The last part of this will need to be the class of the textbox object. TextBox will work if you are using the FoxPro baseclass. The problem with your IF if you need to use the type function
>
>IF TYPE('thisform.text'+ transform(myObj) + '.enabled') = "L"
>
Yes, this would be much simpler and better idea, IMHO.
If it's not broken, fix it until it is.
My Blog