Link to home
Start Free TrialLog in
Avatar of Regulapati
Regulapati

asked on

How Can I add a item to Menu Bar at runtime?

Hi all,
We are trying to add an item to menu(Created at design time). Is there any way to do this?

Thanks for you help in advance.

Madhu
Avatar of ventond
ventond
Flag of United States of America image

You must have at least one menu item created at design time. And it must be a control array. (index <> "")

The at runtime you can say something like

Load mnuTest(x)
mnutest(x).visible= true

where x is an index that is not already loaded.
Avatar of Richie_Simonetti
hearing...
Avatar of Regulapati
Regulapati

ASKER

Hi Ventod,

Thanks for the quick response.

Can you please be more specidific on this.
In the eample you have given I suppose you have
created the mnuTest using Menu Editor.
The part I am not understanding is  "And it must be a control array. (index <> "")". How can I do this?

Thanks
Madhavi






ASKER CERTIFIED SOLUTION
Avatar of ventond
ventond
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forgot to mention, You can't Load an index that already exists and you can't Unload an index that isn't loaded.