>>I want to remove an item from a menu. I am using Release Bar syntax as:
>>
>>
>>RELEASE BAR nMenuItemNumber of MenuName
>>
>>
>>But I need to find the nMenuItemNumber by item prompt text and I don't seem to find a function for that. Or maybe there is another property the item could have which would help me find the item number.
>>
>>Any suggestions?
>
>
> for b=CNTBAR("MenuName") TO 1 STEP -1
> RELEASE BAR GETBAR("MenuName", m.b) OF MenuName
> NEXT
>
>* OR
>RELEASE BAR ALL OF MenuName
>
Fabio,
First, thank you for your message. But it looks like your code will release ALL items of a POPUP menu. I am looking for a way to release only One item where the known is the prompt name of that item.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham