Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find Item Number on a menu?
Message
 
 
To
25/03/2006 02:15:26
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01107544
Message ID:
01107670
Views:
15
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform