Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use a variable for a menu pad or prompt string
Message
De
22/11/2000 11:35:13
 
 
À
22/11/2000 05:49:47
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00444266
Message ID:
00444653
Vues:
7
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform