Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find Item Number on a menu?
Message
 
 
À
25/03/2006 02:15:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01107544
Message ID:
01107670
Vues:
16
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform