I would use SetAll().
FUNCTION SetAllReadOnly
SetAll("ReadOnly", ".T.", "TextBox")
SetAll("ReadOnly", ".T.", "EditBox")
SetAll("ReadOnly", ".T.", "ComboBox")
...
HTH
>I have a form class that is used by several forms. There are multiple databounded fields in each form. I would like to set the fields as readonly or not with one single generic method.
>What would be the best approach?