>>With ThisForm.Commandgroup1 >> store .f. to .command1.enabled, .command2.enabled >>endwith >>for i=3 to 9 >> store .t. to ('ThisForm.Commandgroup1.command'+transform(i)+'.enabled') >>next >>>
WITH ThisForm.Commandgroup1 > .SetAll("Enabled", .T.) > stored .F. to Command1.Enabled, .Command2.Enabled >ENDwithThanks, that's better.