Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditionally release a menu br
Message
De
06/05/2014 13:14:07
 
 
À
06/05/2014 09:08:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01599600
Message ID:
01599628
Vues:
41
>>>>>My VFP's really rusty so:
>>>>>
>>>>>In a form.init() I have : DO main.mpr WITH THIS,"Main"
>>>>>
>>>>>I then want to remove a bar item from the menu. How do I reference the menu ?
>>>>>
>>>>>TIA
>>>>
>>>>I think since the menu is not OO it can be referred as follows (I think):
>>>>
>>>>
>>>>RELEASE BAR 1 of "_mfile"
>>>>
>>>
>>>Isn't '_mfile' an internal VFP name. I guess what I need to know, given the above 'DO....', is the name of the menu.
>>>
>>>Alos, looking at the docs I don't see the syntax that I'm using listed (ie second parameter is just a bool)
>>
>>I think you can open the .mpr file (with a notepad) and see all the names.
>
>OK. Got it working. Based on your suggestion I set step on in the mpr file and tracked down the name of the item containing the bar I wanted to release then, based on Godfrey's input used that after the of.
>

You can specify names for things in the Menu Designer rather than relying on the generated names. Take at look in the Options dialogs for each item.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform