Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use a variable for a menu pad or prompt string
Message
From
22/11/2000 11:35:13
 
 
To
22/11/2000 05:49:47
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00444266
Message ID:
00444653
Views:
10
>>Any way to use a variable or a function value as the prompt string in a menu?
>>
>>TIA
>
>GenMenuX may well give you the option to use an expression for a menu prompt, but I suspect that it will only take the value of the expression at the time that the menu is defined (when the .mpr is run).

I think you mean when the .MPR is generated. What I want is to change it at runtime.

>
>The only way that I'm aware of to change the prompt of a menu item is to re-define that item.
>
>Shameless plug...
>
>You could try my Object Menu class (from the files section), as this makes changing a menu prompt as easy as:
>
>THISFORM.Menu.File.Save.Caption = "Save As"

Thanks Mark. I'll have a look at your class.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform