Adding and Deleting Menu Commands at Run Time

See Also1Q0ZVCO

After using the Menu Design windowV4GKGG to create a control array with one or more menu items, you can write code (using the LoadGU0759 and Unload17FKE8Z statements) to dynamically add or delete menu items in the array at run timeCYRM35.

To add or delete menu items in a control array at run time

   1. Create131TFDP a menu control array.

   2. Open the Code windowJ73QNY by double-clicking a control or the form itself.

   3. Go to the event or procedure where you want to Load or Unload members of the control array.


Note   At run time, you cannot remove commands created at design time.


See Also


Adding and Deleting Controls at Run Time10KLMP2


Programmer's Guide:

Chapter 4, "Menus and Dialogs"