Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change RightClick Menu Labels in Code
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00860145
Message ID:
00860149
Vues:
20
This message has been marked as the solution to the initial question of the thread.
>I have a standard menu that displays when the user right-clicks on an object. There are 7 items in the menu, the last three items are:
>
>
>Note 1
>Note 2
>Note 3
>
>
>Depending on which department the user is working in, I need to change the text from Note 1,2,3 to what that department calls that note. So one department might call Note 1 - "Previsit Note", and another department might call it "Initial Interview Note". I have a place by department where I store these text values, but I don't know how to (or if I can) change the caption on the fly. I really don't want to build a menu on the fly since it has lots of checks going on as far as what is enabled by department and user id already.
>
>Thanks for any help.
>
>Kirk

lc_note = "Note"
in your menu just do
&lc_note. 1
&lc_note. 2
&lc_note. 3
In the menu option - View->Menu Options. I select Setup and put in the code of
IF TYPE('lc_note') <> "C"
   lc_note = "Note"
ENDIF
So that my menu var is always defined.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform