>With ThisForm.Commandgroup1 > store .f. to .command1.enabled, .command2.enabled >endwith >for i=3 to 9 > store .t. to ('ThisForm.Commandgroup1.command'+transfrom(i)+'.enabled') >next >