I try to add dynamically an item into a menu by using mm_insertItem.
This works fine if the menu where I try to insert the item has already an item, but does not work if not.
For examples this is my menu:
with(new menuname("OBJS_THIAPL")){
style = sub1Style;
margin=AllMargin;
}
After an action of the user I try to call:
mm_insertItem('OBJS_THIAPL',0,'text=my text;url=#;');
This does not work.
It works only if the menu is define like:
with(new menuname("OBJS_THIAPL")){
style = sub1Style;
margin=AllMargin;
aI(text=

}
The problem with that is I have a blank item
Any ideas ?
thanks in advance
Regards