>regd setall for contrls in a container. work ok... just
>want to know if there is any way of inserting a condition in
>setall.
>i.e. if a control does not have a controlsource then leave it
>.enabled=.t. else .enabled=.f.
Expand from the other version I sent...
for each loCurObj in MyContainer.Controls
llHasCS = pemstatus( loCurObj, "ControlSource", 5 )
if llHasCS AND not empty( loCurObj.ControlSource )
loCurObj.Enabled = .F.
endif
endfor