for i := 0 to self.ActionList1.ActionCount-1 do
begin
   ActionList1.actions[i].Enabled:=false
end;
这样写为什么会报错,我想让ActionList1里的所有action失效要怎么写呢?