Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditionally release a menu br
Message
From
06/05/2014 10:32:24
 
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01599600
Message ID:
01599617
Views:
49
>>>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)

If you fill in the Pad Name option as well as the Bar # field you'd know what those would be at runtime. One thing that I find annoying about the Menu Builder is that every time I change the Prompt item for a popup, the information in the Pad Name field is overwritten (it is overwritten by something based on what you'd entered for the Prompt -- which I would be OK if you want names to be generated "on-the-fly", but extremely annoying because the item names keep changing and it could break code that refers to menu pads and bars).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform