For Each loControl in ThisForm.Controls
IF loControl.TAG = "X"
loControl.Enabled = .F.
ENDIF
ENDFOR
OR
ThisForm.SetAll('Enabled', .F.)
HTH,
Arriyel
>I'd like to disable all controls in a form if its tag property = 'X'. Is there an easy way to do this? Thank you all!Speak using soft and sweet words in case you have to eat them later.